Debian Codegraph @

clang/test/CodeGenCXX/ms-lookup-template-base-classes.cpp

raw
1 // RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -fms-compatibility %s -o -
2 // CHECK that we don't crash.
3
4 struct Base {
5 void b(int, int);
6 };
7
8 template <typename Base> struct Derived : Base {
9 void d() { b(1, 2); }
10 };
11
12 void use() {
13 Derived<Base> d;
14 d.d();
15 }