Migrate tests to -verify and merge them
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 25 Jan 2013 20:33:53 +0000 (20:33 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 25 Jan 2013 20:33:53 +0000 (20:33 +0000)
llvm-svn: 173482

clang/test/Preprocessor/macro_expandloc.c
clang/test/Preprocessor/macro_expandloc2.c [deleted file]

index f466013..3b9eb5f 100644 (file)
@@ -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/clang/test/Preprocessor/macro_expandloc2.c b/clang/test/Preprocessor/macro_expandloc2.c
deleted file mode 100644 (file)
index 4aa7dfe..0000000
+++ /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
-