]> granicus.if.org Git - clang/commitdiff
Test case for previous commit. Explicit instantiation does the trick. (Thanks, Anders.)
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 16 May 2009 18:59:35 +0000 (18:59 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 16 May 2009 18:59:35 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71954 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/instantiate-expr-basic.cpp [new file with mode: 0644]

diff --git a/test/SemaTemplate/instantiate-expr-basic.cpp b/test/SemaTemplate/instantiate-expr-basic.cpp
new file mode 100644 (file)
index 0000000..2b5fcae
--- /dev/null
@@ -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>;