[cfe-commits] r63759 - in /cfe/trunk/test/Preprocessor: include-directive2.c include.c includeexpand.c includeexpand2.c
Chris Lattner
sabre at nondot.org
Wed Feb 4 11:38:12 PST 2009
Author: lattner
Date: Wed Feb 4 13:38:12 2009
New Revision: 63759
URL: http://llvm.org/viewvc/llvm-project?rev=63759&view=rev
Log:
rename some tests
Added:
cfe/trunk/test/Preprocessor/include-directive2.c
- copied unchanged from r63758, cfe/trunk/test/Preprocessor/includeexpand2.c
cfe/trunk/test/Preprocessor/include.c
- copied, changed from r63756, cfe/trunk/test/Preprocessor/includeexpand.c
Removed:
cfe/trunk/test/Preprocessor/includeexpand.c
cfe/trunk/test/Preprocessor/includeexpand2.c
Copied: cfe/trunk/test/Preprocessor/include.c (from r63756, cfe/trunk/test/Preprocessor/includeexpand.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/include.c?p2=cfe/trunk/test/Preprocessor/include.c&p1=cfe/trunk/test/Preprocessor/includeexpand.c&r1=63756&r2=63759&rev=63759&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/includeexpand.c (original)
+++ cfe/trunk/test/Preprocessor/include.c Wed Feb 4 13:38:12 2009
@@ -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
+
Removed: cfe/trunk/test/Preprocessor/includeexpand.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/includeexpand.c?rev=63758&view=auto
==============================================================================
--- cfe/trunk/test/Preprocessor/includeexpand.c (original)
+++ cfe/trunk/test/Preprocessor/includeexpand.c (removed)
@@ -1,12 +0,0 @@
-// RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3
-
-// XX expands to nothing.
-#define XX
-
-#define FILE "file_to_include.h"
-#include XX FILE
-
-#include FILE
-
-
-#include "file_to_include.h"
Removed: cfe/trunk/test/Preprocessor/includeexpand2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/includeexpand2.c?rev=63758&view=auto
==============================================================================
--- cfe/trunk/test/Preprocessor/includeexpand2.c (original)
+++ cfe/trunk/test/Preprocessor/includeexpand2.c (removed)
@@ -1,4 +0,0 @@
-// RUN: clang -Eonly %s -I.
-# define HEADER <file_to_include.h>
-
-# include HEADER
More information about the cfe-commits
mailing list