xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/instantiate-expr-basic.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -std=c++11 %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc template <typename T>
4*f4a2713aSLionel Sambuc struct S {
fS5*f4a2713aSLionel Sambuc   void f() {
6*f4a2713aSLionel Sambuc     __func__; // PredefinedExpr
7*f4a2713aSLionel Sambuc     10;       // IntegerLiteral
8*f4a2713aSLionel Sambuc     10.5;     // FloatingLiteral
9*f4a2713aSLionel Sambuc     'c';      // CharacterLiteral
10*f4a2713aSLionel Sambuc     "hello";  // StringLiteral
11*f4a2713aSLionel Sambuc     true;     // CXXBooleanLiteralExpr
12*f4a2713aSLionel Sambuc     nullptr;  // CXXNullPtrLiteralExpr
13*f4a2713aSLionel Sambuc     __null;   // GNUNullExpr
14*f4a2713aSLionel Sambuc   }
15*f4a2713aSLionel Sambuc };
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc template struct S<int>;
18