]> granicus.if.org Git - clang/commitdiff
rename some tests
authorChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2009 19:38:12 +0000 (19:38 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2009 19:38:12 +0000 (19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63759 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/include-directive2.c [moved from test/Preprocessor/includeexpand2.c with 100% similarity]
test/Preprocessor/include.c [moved from test/Preprocessor/includeexpand.c with 50% similarity]

similarity index 50%
rename from test/Preprocessor/includeexpand.c
rename to test/Preprocessor/include.c
index 89696c470cc4bb6339c464858bc2c4fe68d48594..0e78b38040d4cc864b79babeb1192363cba6c489 100644 (file)
@@ -1,12 +1,18 @@
-// RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3
+// RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 4
 
 // XX expands to nothing.
 #define XX
 
+// expand macros to get to file to include
 #define FILE "file_to_include.h"
 #include XX FILE
 
 #include FILE
 
-
+// normal include
 #include "file_to_include.h"
+
+// Expand and paste angled strings.
+#  define HEADER <file_to_include.h>
+#  include HEADER
+