r332646 - Add missing test case for r332639
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Thu May 17 11:34:06 PDT 2018
Author: rnk
Date: Thu May 17 11:34:05 2018
New Revision: 332646
URL: http://llvm.org/viewvc/llvm-project?rev=332646&view=rev
Log:
Add missing test case for r332639
Added:
cfe/trunk/test/CodeGenCXX/PR37481.cpp
Added: cfe/trunk/test/CodeGenCXX/PR37481.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/PR37481.cpp?rev=332646&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/PR37481.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/PR37481.cpp Thu May 17 11:34:05 2018
@@ -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>();
+}
More information about the cfe-commits
mailing list