aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-21 06:19:48 +0000
committerChris Lattner <sabre@nondot.org>2008-11-21 06:19:48 +0000
commit46fb6dc98f6ace13fdfed665a155fb146ee45466 (patch)
tree03cc577eb34c9a28f76325a3dc5f03f23fc0ef62
parentfc195efd688f134fb58a540447f4ce67f9d6563e (diff)
testcase for PR3096
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Preprocessor/unterminated.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/unterminated.c b/test/Preprocessor/unterminated.c
new file mode 100644
index 0000000000..59bcae831d
--- /dev/null
+++ b/test/Preprocessor/unterminated.c
@@ -0,0 +1,5 @@
+// RUN: clang -E -verify %s
+// PR3096
+#ifdef FOO // expected-error {{unterminated conditional directive}}
+/* /* */
+