blob: cf6e4789afa8d9c1c10406ed96aadfa7247e0164 [file] [log] [blame]
Daniel Dunbarc79f7672010-09-07 22:54:28 +00001// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
Chris Lattner146ccd42008-02-24 19:05:57 +00002
Daniel Dunbar23afaad2009-11-17 08:57:36 +00003%:include <stdint.h>
Chris Lattner146ccd42008-02-24 19:05:57 +00004
5 %:ifndef BUFSIZE
6 %:define BUFSIZE 512
7 %:endif
8
9 void copy(char d<::>, const char s<::>, int len)
10 <%
11 while (len-- >= 0)
12 <%
13 d<:len:> = s<:len:>;
14 %>
15 %>