commit | 5cbe101b502e06d16bc77df45a27ce8bc13f33c8 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Jul 05 18:30:26 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Jul 05 18:30:26 2011 +0000 |
tree | 27addc3ae3bec3596b0ad8cbf406d8f9755ce2d3 | |
parent | 94c9ce54bf69768166deb2a716863c64b12f77a6 [diff] [blame] |
Look through parenthesized declarators when determining whether an instantiated function template was written with a prototype or via some kind of typedef. Fixes PR10273 / <rdar://problem/9723679>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134426 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-2.cpp b/test/SemaTemplate/instantiate-function-2.cpp index 21eccd4..087ede2 100644 --- a/test/SemaTemplate/instantiate-function-2.cpp +++ b/test/SemaTemplate/instantiate-function-2.cpp
@@ -56,3 +56,11 @@ int n = f<int>(); } + +namespace PR10273 { + template<typename T> void (f)(T t) {} + + void g() { + (f)(17); + } +}