1 | // RUN: clang-import-test -import %S/Inputs/T.cpp -expression %s |
---|---|
2 | |
3 | void expr() { |
4 | A<int>::B b1; |
5 | A<bool>::B b2; |
6 | b1.f + b2.g; |
7 | } |
8 | |
9 | static_assert(f<char>() == 0, ""); |
10 | static_assert(f<int>() == 4, ""); |
11 |
1 | // RUN: clang-import-test -import %S/Inputs/T.cpp -expression %s |
---|---|
2 | |
3 | void expr() { |
4 | A<int>::B b1; |
5 | A<bool>::B b2; |
6 | b1.f + b2.g; |
7 | } |
8 | |
9 | static_assert(f<char>() == 0, ""); |
10 | static_assert(f<int>() == 4, ""); |
11 |