2011-02-20 13:06:31 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s
|
2012-12-02 13:20:44 +00:00
|
|
|
// expected-no-diagnostics
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2009-11-18 14:59:57 +00:00
|
|
|
%:include <stdint.h>
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
%:ifndef BUFSIZE
|
|
|
|
%:define BUFSIZE 512
|
|
|
|
%:endif
|
|
|
|
|
|
|
|
void copy(char d<::>, const char s<::>, int len)
|
|
|
|
<%
|
|
|
|
while (len-- >= 0)
|
|
|
|
<%
|
|
|
|
d<:len:> = s<:len:>;
|
|
|
|
%>
|
|
|
|
%>
|