diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-10 05:14:31 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-10 05:14:31 +0000 |
commit | e3eac778a7085006c86f46e62a457014c8f32555 (patch) | |
tree | 6f5a986cca0e487bd239f4bdfb217a3359bde83a /test/Lexer/digraph.c | |
parent | f93d528220153190ee712912d2acceb35fc14616 (diff) |
Make this test C instead of C++; making it C++ causes a failure on Linux
because clang can't parse stdio.h in C++ mode yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/digraph.c')
-rw-r--r-- | test/Lexer/digraph.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Lexer/digraph.c b/test/Lexer/digraph.c new file mode 100644 index 0000000000..07c085a1d5 --- /dev/null +++ b/test/Lexer/digraph.c @@ -0,0 +1,15 @@ +// RUN: clang -fsyntax-only %s + +%:include <stdio.h> + + %:ifndef BUFSIZE + %:define BUFSIZE 512 + %:endif + + void copy(char d<::>, const char s<::>, int len) + <% + while (len-- >= 0) + <% + d<:len:> = s<:len:>; + %> + %> |