aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-function-2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-function-2.cpp')
-rw-r--r--test/SemaTemplate/instantiate-function-2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-function-2.cpp b/test/SemaTemplate/instantiate-function-2.cpp
index 21eccd4901..087ede2b89 100644
--- a/test/SemaTemplate/instantiate-function-2.cpp
+++ b/test/SemaTemplate/instantiate-function-2.cpp
@@ -56,3 +56,11 @@ namespace AliasTagDef {
int n = f<int>();
}
+
+namespace PR10273 {
+ template<typename T> void (f)(T t) {}
+
+ void g() {
+ (f)(17);
+ }
+}