Daniel Dunbar | c79f767 | 2010-09-07 22:54:28 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Chris Lattner | 146ccd4 | 2008-02-24 19:05:57 +0000 | [diff] [blame] | 3 | |
Daniel Dunbar | 23afaad | 2009-11-17 08:57:36 +0000 | [diff] [blame] | 4 | %:include <stdint.h> |
Chris Lattner | 146ccd4 | 2008-02-24 19:05:57 +0000 | [diff] [blame] | 5 | |
| 6 | %:ifndef BUFSIZE |
| 7 | %:define BUFSIZE 512 |
| 8 | %:endif |
| 9 | |
| 10 | void copy(char d<::>, const char s<::>, int len) |
| 11 | <% |
| 12 | while (len-- >= 0) |
| 13 | <% |
| 14 | d<:len:> = s<:len:>; |
| 15 | %> |
| 16 | %> |