[cfe-commits] r39215 - in /cfe/cfe/trunk/test/Preprocessor: cxx_oper_keyword.cpp cxx_oper_spelling.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:41:21 PDT 2007


Author: sabre
Date: Wed Jul 11 11:41:20 2007
New Revision: 39215

URL: http://llvm.org/viewvc/llvm-project?rev=39215&view=rev
Log:
check minutia of the standard.

Added:
    cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp   (with props)
    cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp   (with props)

Added: cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp?rev=39215&view=auto

==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp (added)
+++ cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp Wed Jul 11 11:41:20 2007
@@ -0,0 +1,6 @@
+// RUN: not clang %s -E
+
+// Not valid in C++.
+#define and foo
+
+

Propchange: cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/cfe/trunk/test/Preprocessor/cxx_oper_keyword.cpp

------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp?rev=39215&view=auto

==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp (added)
+++ cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp Wed Jul 11 11:41:20 2007
@@ -0,0 +1,11 @@
+// RUN: clang -E %s | grep 'a: "and"'
+
+#define X(A) #A
+
+// C++'03 2.5p2: "In all respects of the language, each alternative 
+// token behaves the same, respectively, as its primary token, 
+// except for its spelling"
+//
+// This should be spelled as 'and', not '&&'
+a: X(and)
+

Propchange: cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/cfe/trunk/test/Preprocessor/cxx_oper_spelling.cpp

------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision





More information about the cfe-commits mailing list