instantiate-expr-basic.cpp 413 B

1234567891011121314151617
  1. // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -std=c++11 %s
  2. template <typename T>
  3. struct S {
  4. void f() {
  5. __func__; // PredefinedExpr
  6. 10; // IntegerLiteral
  7. 10.5; // FloatingLiteral
  8. 'c'; // CharacterLiteral
  9. "hello"; // StringLiteral
  10. true; // CXXBooleanLiteralExpr
  11. nullptr; // CXXNullPtrLiteralExpr
  12. __null; // GNUNullExpr
  13. }
  14. };
  15. template struct S<int>;