18 lines · cpp
1// RUN: %clang_cc1 -o /dev/null -emit-llvm -std=c++17 -triple x86_64-pc-windows-msvc %s2 3struct Foo {4 virtual void f();5 virtual void g();6};7 8void Foo::f() {}9void Foo::g() {}10 11template <void (Foo::*)()>12void h() {}13 14void x() {15 h<&Foo::f>();16 h<&Foo::g>();17}18