summaryrefslogtreecommitdiffstats
path: root/test/Lexer/digraph.c
blob: 3c92db1c02b2a5c58a9966f24f7b7a2dbc9968c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -fsyntax-only -verify < %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:>;
        %>
    %>