summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/ifdef-recover.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/ifdef-recover.c')
-rw-r--r--clang/test/Preprocessor/ifdef-recover.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/ifdef-recover.c b/clang/test/Preprocessor/ifdef-recover.c
index 2009514f5e1..bd1d507bbc4 100644
--- a/clang/test/Preprocessor/ifdef-recover.c
+++ b/clang/test/Preprocessor/ifdef-recover.c
@@ -1,7 +1,15 @@
-/* RUN: clang %s 2>&1 | grep error: | count 1
+/* RUN: clang %s 2>&1 | grep error: | count 3
*/
#ifdef
#endif
+/* End of function-like macro invocation in #ifdef */
+/* PR1936 */
+#define f(x) x
+#if f(2
+#endif
+
+int x;
+
OpenPOWER on IntegriCloud