llvm-for-llvmta/tools/clang/test/CodeGenCXX/ms-lookup-template-base-cla...

16 lines
274 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -fms-compatibility %s -o -
// CHECK that we don't crash.
struct Base {
void b(int, int);
};
template <typename Base> struct Derived : Base {
void d() { b(1, 2); }
};
void use() {
Derived<Base> d;
d.d();
}