From: Sebastian Redl Date: Sat, 16 May 2009 18:59:35 +0000 (+0000) Subject: Test case for previous commit. Explicit instantiation does the trick. (Thanks, Anders.) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15853a1403d0e938296584ad1cc348a4a08df2cd;p=clang Test case for previous commit. Explicit instantiation does the trick. (Thanks, Anders.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71954 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/instantiate-expr-basic.cpp b/test/SemaTemplate/instantiate-expr-basic.cpp new file mode 100644 index 0000000000..2b5fcaeb04 --- /dev/null +++ b/test/SemaTemplate/instantiate-expr-basic.cpp @@ -0,0 +1,17 @@ +// RUN: clang-cc -fsyntax-only -Wno-unused-value -std=c++0x %s + +template +struct S { + void f() { + __func__; // PredefinedExpr + 10; // IntegerLiteral + 10.5; // FloatingLiteral + 'c'; // CharacterLiteral + "hello"; // StringLiteral + true; // CXXBooleanLiteralExpr + nullptr; // CXXNullPtrLiteralExpr + __null; // GNUNullExpr + } +}; + +template struct S;