summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/addr-of-overloaded-function.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-22 02:10:53 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-22 02:10:53 +0000
commit463e523ad82b465164000fc5e6582191a67408e7 (patch)
treea54bd0bf295ae4c82e47ea7df9a954dd9c4954e0 /clang/test/SemaCXX/addr-of-overloaded-function.cpp
parent919b7aab2ee7e58d25930a915116c048be4f820f (diff)
downloadbcm5719-llvm-463e523ad82b465164000fc5e6582191a67408e7.tar.gz
bcm5719-llvm-463e523ad82b465164000fc5e6582191a67408e7.zip
Switch file-scope assignment initialization over to InitializationSequence.
llvm-svn: 91881
Diffstat (limited to 'clang/test/SemaCXX/addr-of-overloaded-function.cpp')
-rw-r--r--clang/test/SemaCXX/addr-of-overloaded-function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/addr-of-overloaded-function.cpp b/clang/test/SemaCXX/addr-of-overloaded-function.cpp
index 45a65f8199d..3b06119393d 100644
--- a/clang/test/SemaCXX/addr-of-overloaded-function.cpp
+++ b/clang/test/SemaCXX/addr-of-overloaded-function.cpp
@@ -9,7 +9,7 @@ int (*pfi)(int) = &f; // selects f(int)
// FIXME: This error message is not very good. We need to keep better
// track of what went wrong when the implicit conversion failed to
// give a better error message here.
-int (*pfe)(...) = &f; // expected-error{{incompatible type initializing '<overloaded function type>', expected 'int (*)(...)'}}
+int (*pfe)(...) = &f; // expected-error{{cannot initialize a variable of type 'int (*)(...)' with an rvalue of type '<overloaded function type>'}}
int (&rfi)(int) = f; // selects f(int)
int (&rfd)(double) = f; // selects f(double)
OpenPOWER on IntegriCloud