Commit c1827cf0 by Janis Johnson Committed by Janis Johnson

error46.C: Add missing comment to dg-message.

	* g++.dg/template/error46.C: Add missing comment to dg-message.
	* g++.dg/template/crash107.C: Likewise.
	* g++.dg/template/error47.C: Likewise.
	* g++.dg/template/crash108.C: Likewise.
	* g++.dg/overload/operator5.C: Likewise.

From-SVN: r189062
parent b03aa1fa
2012-06-28 Janis Johnson <janisjo@codesourcery.com> 2012-06-28 Janis Johnson <janisjo@codesourcery.com>
* g++.dg/template/error46.C: Add missing comment to dg-message.
* g++.dg/template/crash107.C: Likewise.
* g++.dg/template/error47.C: Likewise.
* g++.dg/template/crash108.C: Likewise.
* g++.dg/overload/operator5.C: Likewise.
* gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax * gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax
errors in dg-message directives, add comments. errors in dg-message directives, add comments.
......
...@@ -13,4 +13,4 @@ inline bool equalPossiblyIgnoringCase(const String& a, ...@@ -13,4 +13,4 @@ inline bool equalPossiblyIgnoringCase(const String& a,
const String& b, const String& b,
bool ignoreCase) { bool ignoreCase) {
return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" } return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" }
// { dg-message "note" { target *-*-* } 15 } // { dg-message "note" "note" { target *-*-* } 15 }
...@@ -14,7 +14,7 @@ template<typename FP_> struct Vec { // { dg-message "note" } ...@@ -14,7 +14,7 @@ template<typename FP_> struct Vec { // { dg-message "note" }
} }
}; };
Vec<double> v(3,4,12); // { dg-error "no matching" } Vec<double> v(3,4,12); // { dg-error "no matching" }
// { dg-message "note" { target *-*-* } 16 } // { dg-message "note" "note" { target *-*-* } 16 }
Vec<double> V(12,4,3); // { dg-error "no matching" } Vec<double> V(12,4,3); // { dg-error "no matching" }
// { dg-message "note" { target *-*-* } 18 } // { dg-message "note" "note" { target *-*-* } 18 }
Vec<double> c = v^V; // { dg-message "required" } Vec<double> c = v^V; // { dg-message "required" }
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
template<class T> struct A {A(int b=k(0));}; // { dg-error "arguments" } template<class T> struct A {A(int b=k(0));}; // { dg-error "arguments" }
void f(int k){A<int> a;} // // { dg-error "parameter|declared" } void f(int k){A<int> a;} // // { dg-error "parameter|declared" }
// { dg-message "note" { target *-*-* } 3 } // { dg-message "note" "note" { target *-*-* } 3 }
...@@ -8,4 +8,4 @@ void bar() ...@@ -8,4 +8,4 @@ void bar()
{ {
foo(A<0>(), A<1>()); // { dg-error "no matching" } foo(A<0>(), A<1>()); // { dg-error "no matching" }
} }
// { dg-message "candidate|parameter 'N' ('0' and '1')" { target *-*-* } 9 } // { dg-message "candidate|parameter 'N' ('0' and '1')" "" { target *-*-* } 9 }
...@@ -6,4 +6,4 @@ void bar(void* p) ...@@ -6,4 +6,4 @@ void bar(void* p)
{ {
foo(0, p); // { dg-error "no matching" } foo(0, p); // { dg-error "no matching" }
} }
// { dg-message "candidate|parameter 'T' ('int' and 'void*')" { target *-*-* } 7 } // { dg-message "candidate|parameter 'T' ('int' and 'void*')" "" { target *-*-* } 7 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment