summaryrefslogtreecommitdiffstats
path: root/test/Lexer/digraph.c
blob: cf6e4789afa8d9c1c10406ed96aadfa7247e0164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s

%:include <stdint.h>

    %:ifndef BUFSIZE
     %:define BUFSIZE  512
    %:endif

    void copy(char d<::>, const char s<::>, int len)
    <%
        while (len-- >= 0)
        <%
            d<:len:> = s<:len:>;
        %>
    %>