mirror of https://github.com/microsoft/clang.git
Add missing test case for r332639
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0a50d19b3
commit
d5660b06c3
|
@ -0,0 +1,17 @@
|
|||
// RUN: %clang_cc1 -o /dev/null -emit-llvm -std=c++17 -triple x86_64-pc-windows-msvc %s
|
||||
|
||||
struct Foo {
|
||||
virtual void f();
|
||||
virtual void g();
|
||||
};
|
||||
|
||||
void Foo::f() {}
|
||||
void Foo::g() {}
|
||||
|
||||
template <void (Foo::*)()>
|
||||
void h() {}
|
||||
|
||||
void x() {
|
||||
h<&Foo::f>();
|
||||
h<&Foo::g>();
|
||||
}
|
Loading…
Reference in New Issue