Allow calling an overloaded function set by taking the address of the
functions, e.g., (&f)(0). Fixes <rdar://problem/9803316>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141877 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/alignof-sizeof-reference.cpp b/test/SemaCXX/alignof-sizeof-reference.cpp
index 1d65abb..6a2d301 100644
--- a/test/SemaCXX/alignof-sizeof-reference.cpp
+++ b/test/SemaCXX/alignof-sizeof-reference.cpp
@@ -11,7 +11,8 @@
void f(); // expected-note{{possible target for call}}
void f(int); // expected-note{{possible target for call}}
void g() {
- sizeof(&f); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
+ sizeof(&f); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} \
+ // expected-warning{{expression result unused}}
}
template<typename T> void f_template(); // expected-note{{possible target for call}}