Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Import / template-specialization / test.cpp
blob3e7e4bcd40edb26150b9f222adee54ceb53c29d0
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/T.cpp -expression %s | FileCheck %s
3 // CHECK: |-ClassTemplateSpecializationDecl
4 // CHECK-SAME: <line:4:1, line:8:1> line:4:20 struct A
6 void expr() {
7 A<int>::B b1;
8 A<bool>::B b2;
9 b1.f + b2.g;
12 static_assert(f<char>() == 0, "");
13 static_assert(f<int>() == 4, "");