summaryrefslogtreecommitdiff
path: root/test/Import/template-specialization/test.cpp
blob: 30df8187602d704bb052537495bf3de2830210f9 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-import-test -import %S/Inputs/T.cpp -expression %s

void expr() {
  A<int>::B b1;
  A<bool>::B b2;
  b1.f + b2.g;
}

static_assert(f<char>() == 0, "");
static_assert(f<int>() == 4, "");