summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-24 07:15:46 +0000
committerChris Lattner <sabre@nondot.org>2009-04-24 07:15:46 +0000
commit40493eb6ebc7fd1090a30f62c1eb04e33ebe1100 (patch)
tree7d423c8120c11125796b26aec4867bf0b0f0e114 /clang/test
parent469fdc6af3c3e6c77a2e79639f4063b6aab1e92a (diff)
downloadbcm5719-llvm-40493eb6ebc7fd1090a30f62c1eb04e33ebe1100.tar.gz
bcm5719-llvm-40493eb6ebc7fd1090a30f62c1eb04e33ebe1100.zip
fix rdar://6816766 - Crash with function-like macro test at end of directive.
llvm-svn: 69964
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Preprocessor/macro_fn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macro_fn.c b/clang/test/Preprocessor/macro_fn.c
index 98ebaeea729..5c55c0ceed5 100644
--- a/clang/test/Preprocessor/macro_fn.c
+++ b/clang/test/Preprocessor/macro_fn.c
@@ -38,3 +38,9 @@ e()
zero_dot()
one_dot(x) /* empty ... argument: expected-warning {{varargs argument missing, but tolerated as an extension}} */
one_dot() /* empty first argument, elided ...: expected-warning {{varargs argument missing, but tolerated as an extension}} */
+
+
+/* rdar://6816766 - Crash with function-like macro test at end of directive. */
+#define E() (i == 0)
+#if E
+#endif
OpenPOWER on IntegriCloud