25 lines · cpp
1// RUN: %clang_cc1 -ast-print %s | FileCheck %s2 3template <typename T, typename U = double> class Foo;4 5template <> class Foo<int, double> { int method1(); };6 7using int_type = int;8 9int Foo<int_type, double>::method1() {10 // CHECK: int Foo<int_type, double>::method1()11 return 10;12}13 14int test_typedef() {15 typedef Foo<int, double> TypedefArg;16 // CHECK: typedef Foo<int, double> TypedefArg;17 return 10;18}19 20int test_typedef2() {21 typedef Foo<int> TypedefArg;22 // CHECK: typedef Foo<int> TypedefArg;23 return 10;24}25