aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-25 20:33:53 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-25 20:33:53 +0000
commit8b127d3f9baa6bef2068a3aa5923fe81cbfb9b11 (patch)
tree50c9de593e12e055ecd6d904dfb4f9d0a2c45572 /test/Preprocessor
parent7f5c343c43167b9e3ec27bba08d254831ce8fdad (diff)
Migrate tests to -verify and merge them
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r--test/Preprocessor/macro_expandloc.c9
-rw-r--r--test/Preprocessor/macro_expandloc2.c6
2 files changed, 8 insertions, 7 deletions
diff --git a/test/Preprocessor/macro_expandloc.c b/test/Preprocessor/macro_expandloc.c
index f4660132f5..3b9eb5fddd 100644
--- a/test/Preprocessor/macro_expandloc.c
+++ b/test/Preprocessor/macro_expandloc.c
@@ -1,6 +1,13 @@
-// RUN: %clang_cc1 %s -E 2>&1 | grep '#include'
+// RUN: %clang_cc1 -E -verify %s
#define FOO 1
// The error message should be on the #include line, not the 1.
+
+// expected-error@+1 {{expected "FILENAME" or <FILENAME>}}
#include FOO
+#define BAR BAZ
+
+// expected-error@+1 {{expected "FILENAME" or <FILENAME>}}
+#include BAR
+
diff --git a/test/Preprocessor/macro_expandloc2.c b/test/Preprocessor/macro_expandloc2.c
deleted file mode 100644
index 4aa7dfe944..0000000000
--- a/test/Preprocessor/macro_expandloc2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-// RUN: %clang_cc1 %s -E 2>&1 | grep '#include'
-#define FOO BAR
-
-// The error message should be on the #include line, not the 1.
-#include FOO
-