aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/ms-lookup-template-base-classes.cpp
blob: 41a4ee8b5bb8f9a56d4b3b0cfefd171bb8b7be74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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();
}