aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_fn.c
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
commita864cf7c1d774a0f790bfc46befc87d9dbf1f65c (patch)
treeb5ea3210c833566853435744be6166d0d3f701c3 /test/Preprocessor/macro_fn.c
parent09546d46c320da58fe89f5d6cf32db78cc2d7b96 (diff)
fix rdar://6816766 - Crash with function-like macro test at end of directive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_fn.c')
-rw-r--r--test/Preprocessor/macro_fn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_fn.c b/test/Preprocessor/macro_fn.c
index 98ebaeea72..5c55c0ceed 100644
--- a/test/Preprocessor/macro_fn.c
+++ b/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