Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify < %s |
Chris Lattner | 146ccd4 | 2008-02-24 19:05:57 +0000 | [diff] [blame] | 2 | |
Daniel Dunbar | 23afaad | 2009-11-17 08:57:36 +0000 | [diff] [blame^] | 3 | %:include <stdint.h> |
Chris Lattner | 146ccd4 | 2008-02-24 19:05:57 +0000 | [diff] [blame] | 4 | |
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 | %> |