diff options
author | Reid Kleckner <rnk@google.com> | 2018-05-17 18:34:05 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-05-17 18:34:05 +0000 |
commit | d5660b06c3a1f13c00c17b3a147f23b7ba948ac5 (patch) | |
tree | cfb2996061d749da02e0a4c118cde0fbb5f1f2f9 /test/CodeGenCXX/PR37481.cpp | |
parent | b0a50d19b3abf68d9615ec305a8f96734e829788 (diff) |
Add missing test case for r332639
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332646 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000000..fba2ffdc84 --- /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>(); +} |