diff options
Diffstat (limited to 'test/CodeGenCXX/PR37481.cpp')
-rw-r--r-- | test/CodeGenCXX/PR37481.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenCXX/PR37481.cpp b/test/CodeGenCXX/PR37481.cpp new file mode 100644 index 000000000000..fba2ffdc8488 --- /dev/null +++ b/test/CodeGenCXX/PR37481.cpp @@ -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>(); +} |