diff mbox

[c/c++] use explicit locations for some warnings in c-pragma.c

Message ID 3B3292DF-EE4A-4AE0-9FB4-70AADEA3A2F8@comcast.net
State New
Headers show

Commit Message

Mike Stump Nov. 6, 2015, 9:17 p.m. UTC
On Nov 4, 2015, at 1:02 PM, Manuel López-Ibáñez <lopezibanez@gmail.com> wrote:
> On 4 November 2015 at 09:45, Mike Stump <mrs@mrs.kithrup.com> wrote:
>> in the top of the tree.  This is bad as the same line appears in a PASS: and an XFAIL:.  Each test case should be unique.  Should it be updated to 64?
> 
> I think it is sufficient to change it to:
> 
> /* { dg-warning "24:missing" "wrong column" { xfail *-*-* }  2 } */

I tested this out, works just fine.

2015-11-06  Mike Stump  <mikestump@comcast.net>

	* gcc.dg/pragma-diag-5.c: Make test cases unique.

Committed revision 229891.

Thanks for your help.
diff mbox

Patch

Index: testsuite/gcc.dg/pragma-diag-5.c
===================================================================
--- testsuite/gcc.dg/pragma-diag-5.c	(revision 229885)
+++ testsuite/gcc.dg/pragma-diag-5.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do compile } */
 #pragma GCC diagnostic /* { dg-warning "missing" "missing" } */
-/* { dg-warning "24:missing" "missing" { xfail *-*-* }  2 } */
+/* { dg-warning "24:missing" "wrong column" { xfail *-*-* }  2 } */
 
 #pragma GCC diagnostic warn /* { dg-warning "24:expected" } */