[cfe-commits] r71954 - /cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sat May 16 11:59:35 PDT 2009


Author: cornedbee
Date: Sat May 16 13:59:35 2009
New Revision: 71954

URL: http://llvm.org/viewvc/llvm-project?rev=71954&view=rev
Log:
Test case for previous commit. Explicit instantiation does the trick. (Thanks, Anders.)

Added:
    cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp   (with props)

Added: cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp?rev=71954&view=auto

==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp (added)
+++ cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp Sat May 16 13:59:35 2009
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -Wno-unused-value -std=c++0x %s
+
+template <typename T>
+struct S {
+  void f() {
+    __func__; // PredefinedExpr
+    10;       // IntegerLiteral
+    10.5;     // FloatingLiteral
+    'c';      // CharacterLiteral
+    "hello";  // StringLiteral
+    true;     // CXXBooleanLiteralExpr
+    nullptr;  // CXXNullPtrLiteralExpr
+    __null;   // GNUNullExpr
+  }
+};
+
+template struct S<int>;

Propchange: cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp

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

Propchange: cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp

------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cfe/trunk/test/SemaTemplate/instantiate-expr-basic.cpp

------------------------------------------------------------------------------
    svn:mime-type = text/plain





More information about the cfe-commits mailing list