xref: /llvm-project/clang/test/Import/template-specialization/test.cpp (revision a9f10ebffaa29e009081faa2720f8ea9bb356658)
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/T.cpp -expression %s | FileCheck %s
2 
3 // CHECK: |-ClassTemplateSpecializationDecl
4 // CHECK-SAME: <line:4:1, line:8:1> line:4:20 struct A
5 
expr()6 void expr() {
7   A<int>::B b1;
8   A<bool>::B b2;
9   b1.f + b2.g;
10 }
11 
12 static_assert(f<char>() == 0, "");
13 static_assert(f<int>() == 4, "");
14