llvm-for-llvmta/tools/clang/test/Import/template-specialization/Inputs/T.cpp

19 lines
264 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
template <typename T> struct A {
};
template <> struct A<int> {
struct B {
int f;
};
};
template <> struct A<bool> {
struct B {
int g;
};
};
template <typename T> constexpr int f() { return 0; }
template <> constexpr int f<int>() { return 4; }