xref: /aosp_15_r20/external/clang/test/Lexer/digraph.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
2*67e74705SXin Li // expected-no-diagnostics
3*67e74705SXin Li 
4*67e74705SXin Li %:include <stdint.h>
5*67e74705SXin Li 
6*67e74705SXin Li     %:ifndef BUFSIZE
7*67e74705SXin Li      %:define BUFSIZE  512
8*67e74705SXin Li     %:endif
9*67e74705SXin Li 
copy(char d[],const char s[],int len)10*67e74705SXin Li     void copy(char d<::>, const char s<::>, int len)
11*67e74705SXin Li     <%
12*67e74705SXin Li         while (len-- >= 0)
13*67e74705SXin Li         <%
14*67e74705SXin Li             d<:len:> = s<:len:>;
15*67e74705SXin Li         %>
16*67e74705SXin Li     %>
17