| Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -std=c++11 %s |
| Sebastian Redl | 15853a1 | 2009-05-16 18:59:35 +0000 | [diff] [blame] | 2 | |
| 3 | template <typename T> | ||||
| 4 | struct S { | ||||
| 5 | void f() { | ||||
| 6 | __func__; // PredefinedExpr | ||||
| 7 | 10; // IntegerLiteral | ||||
| 8 | 10.5; // FloatingLiteral | ||||
| 9 | 'c'; // CharacterLiteral | ||||
| 10 | "hello"; // StringLiteral | ||||
| 11 | true; // CXXBooleanLiteralExpr | ||||
| 12 | nullptr; // CXXNullPtrLiteralExpr | ||||
| 13 | __null; // GNUNullExpr | ||||
| 14 | } | ||||
| 15 | }; | ||||
| 16 | |||||
| 17 | template struct S<int>; | ||||