summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/numeric-literal-trash.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-09-02 05:29:22 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-09-02 05:29:22 +0000
commitee29c9c2fc21dda0016343838e8730f413690a83 (patch)
tree918d8bd4d0beac140079df5da49ea73bd9dca7b9 /clang/test/Lexer/numeric-literal-trash.c
parent7c9ba6a1e356e29c4adee2c4a0442659ee14692a (diff)
downloadbcm5719-llvm-ee29c9c2fc21dda0016343838e8730f413690a83.tar.gz
bcm5719-llvm-ee29c9c2fc21dda0016343838e8730f413690a83.zip
Fix for PR2750; don't check for an 'e' in the trash after the token.
Note that this isn't really a complete fix; I think there are other potential overrun situations. I don't really know what the best systematic fix is, though. llvm-svn: 55622
Diffstat (limited to 'clang/test/Lexer/numeric-literal-trash.c')
-rw-r--r--clang/test/Lexer/numeric-literal-trash.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Lexer/numeric-literal-trash.c b/clang/test/Lexer/numeric-literal-trash.c
new file mode 100644
index 00000000000..243825a5363
--- /dev/null
+++ b/clang/test/Lexer/numeric-literal-trash.c
@@ -0,0 +1,13 @@
+/* RUN: clang -fsyntax-only -verify %s
+ */
+# define XRECORD(x, c_name) e##c (x, __LINE__)
+
+
+
+
+
+
+ void x() {
+
+XRECORD (XRECORD (1, 1), 1);
+ }
OpenPOWER on IntegriCloud