xref: /llvm-project/clang/test/SemaTemplate/instantiate-expr-basic.cpp (revision 9ca5c425826329d5b23300bbc8a1a7c10a19c64d)
1*9ca5c425SRichard Smith // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -std=c++11 %s
245be55d1SSebastian Redl 
345be55d1SSebastian Redl template <typename T>
445be55d1SSebastian Redl struct S {
fS545be55d1SSebastian Redl   void f() {
645be55d1SSebastian Redl     __func__; // PredefinedExpr
745be55d1SSebastian Redl     10;       // IntegerLiteral
845be55d1SSebastian Redl     10.5;     // FloatingLiteral
945be55d1SSebastian Redl     'c';      // CharacterLiteral
1045be55d1SSebastian Redl     "hello";  // StringLiteral
1145be55d1SSebastian Redl     true;     // CXXBooleanLiteralExpr
1245be55d1SSebastian Redl     nullptr;  // CXXNullPtrLiteralExpr
1345be55d1SSebastian Redl     __null;   // GNUNullExpr
1445be55d1SSebastian Redl   }
1545be55d1SSebastian Redl };
1645be55d1SSebastian Redl 
1745be55d1SSebastian Redl template struct S<int>;
18