Patch to clean up and improve visual display of
builtin function ambiguity.
llvm-svn: 84289
diff --git a/clang/test/SemaCXX/ambiguous-builtin-unary-operator.cpp b/clang/test/SemaCXX/ambiguous-builtin-unary-operator.cpp
index 0c9433f..5affd19 100644
--- a/clang/test/SemaCXX/ambiguous-builtin-unary-operator.cpp
+++ b/clang/test/SemaCXX/ambiguous-builtin-unary-operator.cpp
@@ -14,10 +14,10 @@
void test(C c) {
++c; // expected-error {{use of overloaded operator '++' is ambiguous}}\
- // expected-note {{built-in candidate operator ++ ('int &')}} \
- // expected-note {{built-in candidate operator ++ ('long &')}} \
- // expected-note {{built-in candidate operator ++ ('long *&')}} \
- // expected-note {{built-in candidate operator ++ ('int *&')}}
+ // expected-note {{built-in candidate operator++(int &)}} \
+ // expected-note {{built-in candidate operator++(long &)}} \
+ // expected-note {{built-in candidate operator++(long *&)}} \
+ // expected-note {{built-in candidate operator++(int *&)}}
}
struct A1 { operator volatile int&(); };
@@ -28,7 +28,7 @@
void test(C1 c) {
++c; // expected-error {{use of overloaded operator '++' is ambiguous}} \
- // expected-note {{built-in candidate operator ++ ('int volatile &')}} \
- // expected-note {{built-in candidate operator ++ ('long volatile &')}}
+ // expected-note {{built-in candidate operator++(int volatile &)}} \
+ // expected-note {{built-in candidate operator++(long volatile &)}}
}