summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/addr-of-overloaded-function.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-12-13 23:19:45 +0000
committerRichard Trieu <rtrieu@google.com>2011-12-13 23:19:45 +0000
commit96ed5b6b47666190c6f908292e5c0b187c41047a (patch)
tree79a3fa5d01a5f643346af0dbabfa80d765f5b489 /clang/test/SemaCXX/addr-of-overloaded-function.cpp
parentbc96f3725322e7fbf28b2d8814ca8f2cea0cd6f4 (diff)
downloadbcm5719-llvm-96ed5b6b47666190c6f908292e5c0b187c41047a.tar.gz
bcm5719-llvm-96ed5b6b47666190c6f908292e5c0b187c41047a.zip
Make the diagnostic message more consistant. Update the type comparison to
handle non-pointer types. This is for the extra info printed when function types are compared. llvm-svn: 146525
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 af171ec7016..f9cc11174c7 100644
--- a/clang/test/SemaCXX/addr-of-overloaded-function.cpp
+++ b/clang/test/SemaCXX/addr-of-overloaded-function.cpp
@@ -156,7 +156,7 @@ namespace test1 {
}
void parameter_mismatch() {
- void (*ptr1)(double) = &fun; // expected-error {{cannot initialize a variable of type 'void (*)(double)' with an rvalue of type 'void (*)(int)': type mismatch in 1st parameter ('double' vs 'int')}}
+ void (*ptr1)(double) = &fun; // expected-error {{cannot initialize a variable of type 'void (*)(double)' with an rvalue of type 'void (*)(int)': type mismatch at 1st parameter ('double' vs 'int')}}
void (*ptr2)(double);
ptr2 = &fun; // expected-error {{assigning to 'void (*)(double)' from incompatible type 'void (*)(int)': type mismatch at 1st parameter ('double' vs 'int')}}
}
OpenPOWER on IntegriCloud