summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/address-of-fntemplate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/address-of-fntemplate.cpp')
-rw-r--r--test/CodeGenCXX/address-of-fntemplate.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/address-of-fntemplate.cpp b/test/CodeGenCXX/address-of-fntemplate.cpp
index c5fa89d..162c6e5 100644
--- a/test/CodeGenCXX/address-of-fntemplate.cpp
+++ b/test/CodeGenCXX/address-of-fntemplate.cpp
@@ -11,3 +11,17 @@ void test() {
}
// CHECK: define linkonce_odr void @_Z1fIiEvT_
// CHECK: define linkonce_odr void @_Z1fIiEvv
+
+namespace PR6973 {
+ template<typename T>
+ struct X {
+ void f(const T&);
+ };
+
+ template<typename T>
+ int g();
+
+ void h(X<int (*)()> xf) {
+ xf.f(&g<int>);
+ }
+}
OpenPOWER on IntegriCloud