Debian Codegraph @

clang/test/Import/template-specialization/test.cpp

raw
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
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, "");