[cfe-commits] r38538 - in /cfe/cfe/trunk/test: ./ Lexer/ Lexer/escape_newline.c Makefile Preprocessor/ Preprocessor/disabled-cond-diags.c Preprocessor/hash_line.c Preprocessor/hash_space.c Preprocessor/indent_macro.c Preprocessor/macro_space.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:22:16 PDT 2007
Author: sabre
Date: Wed Jul 11 11:22:15 2007
New Revision: 38538
URL: http://llvm.org/viewvc/llvm-project?rev=38538&view=rev
Log:
Initial checkin of testsuite
Added:
cfe/cfe/trunk/test/
cfe/cfe/trunk/test/Lexer/
cfe/cfe/trunk/test/Lexer/escape_newline.c (with props)
cfe/cfe/trunk/test/Makefile (with props)
cfe/cfe/trunk/test/Preprocessor/
cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c (with props)
cfe/cfe/trunk/test/Preprocessor/hash_line.c (with props)
cfe/cfe/trunk/test/Preprocessor/hash_space.c (with props)
cfe/cfe/trunk/test/Preprocessor/indent_macro.c (with props)
cfe/cfe/trunk/test/Preprocessor/macro_space.c (with props)
Added: cfe/cfe/trunk/test/Lexer/escape_newline.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Lexer/escape_newline.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Lexer/escape_newline.c (added)
+++ cfe/cfe/trunk/test/Lexer/escape_newline.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,7 @@
+// RUN: clang -E %s | grep -- ' ->' &&
+// RUN: clang -E %s 2>&1 | grep 'backslash and newline separated by space' &&
+// RUN: clang -E %s 2>&1 | grep 'trigraph converted'
+
+// This is an ugly way to spell a -> token.
+ -??/
+>
Propchange: cfe/cfe/trunk/test/Lexer/escape_newline.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Lexer/escape_newline.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Makefile?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Makefile (added)
+++ cfe/cfe/trunk/test/Makefile Wed Jul 11 11:22:15 2007
@@ -0,0 +1,3 @@
+
+all:
+ find . -name \*.c -print -exec ~/llvm/test/TestRunner.sh {} \;
Propchange: cfe/cfe/trunk/test/Makefile
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Makefile
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,10 @@
+// RUN: clang -E %s 2>&1 | not grep "warning\|error"
+
+#if 0
+
+// Shouldn't get warnings here.
+??( ??)
+
+// Should not get an error here.
+` ` ` `
+#endif
Propchange: cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/disabled-cond-diags.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/hash_line.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/hash_line.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/hash_line.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/hash_line.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,8 @@
+// The 1 and # should not go on the same line.
+// RUN: clang %s -E | not grep "1 #" &&
+// RUN: clang %s -E | grep '^1$' &&
+// RUN: clang %s -E | grep '^ #$'
+1
+#define EMPTY
+EMPTY #
+
Propchange: cfe/cfe/trunk/test/Preprocessor/hash_line.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/hash_line.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/hash_space.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/hash_space.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/hash_space.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/hash_space.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,6 @@
+// RUN: clang %s -E | grep " #"
+
+// Should put a space before the # so that -fpreprocessed mode doesn't
+// macro expand this again.
+#define HASH #
+HASH define foo bar
Propchange: cfe/cfe/trunk/test/Preprocessor/hash_space.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/hash_space.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/indent_macro.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/indent_macro.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/indent_macro.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/indent_macro.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,6 @@
+// RUN: clang -E %s | grep '^ zzap$'
+
+// zzap is on a new line, should be indented.
+#define BLAH zzap
+ BLAH
+
Propchange: cfe/cfe/trunk/test/Preprocessor/indent_macro.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/indent_macro.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/macro_space.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_space.c?rev=38538&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_space.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_space.c Wed Jul 11 11:22:15 2007
@@ -0,0 +1,5 @@
+// RUN: clang %s -E | grep '! ,'
+
+#define XX
+! XX,
+
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_space.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_space.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list