diff options
Diffstat (limited to 'test/SemaCXX/alignof-sizeof-reference.cpp')
-rw-r--r-- | test/SemaCXX/alignof-sizeof-reference.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/alignof-sizeof-reference.cpp b/test/SemaCXX/alignof-sizeof-reference.cpp index b517e43..93ba203 100644 --- a/test/SemaCXX/alignof-sizeof-reference.cpp +++ b/test/SemaCXX/alignof-sizeof-reference.cpp @@ -13,3 +13,9 @@ void f(int); // expected-note{{candidate function}} void g() { sizeof(&f); // expected-error{{cannot resolve overloaded function 'f' from context}} } + +template<typename T> void f_template(); // expected-note{{candidate function}} +template<typename T> void f_template(T*); // expected-note{{candidate function}} +void rdar9659191() { + (void)alignof(f_template<int>); // expected-error{{cannot resolve overloaded function 'f_template' from context}} +} |