diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-24 19:05:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-24 19:05:57 +0000 |
commit | 146ccd44ecde4fd5a28749a694f786e75efe6e62 (patch) | |
tree | 35e2fe642e690e21a1e49aef7bd4138a65a03bca /test/Lexer/digraph.cpp | |
parent | edf9c7f1bc0cb329df87ca3388fce8b6234f0359 (diff) |
Fix PR2090, a typo in digraph processing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/digraph.cpp')
-rw-r--r-- | test/Lexer/digraph.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Lexer/digraph.cpp b/test/Lexer/digraph.cpp new file mode 100644 index 0000000000..07c085a1d5 --- /dev/null +++ b/test/Lexer/digraph.cpp @@ -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:>; + %> + %> |