20031223-1.c: Add comments to check for multiple messages reported for one line of...
authorJanis Johnson <janisjo@codesourcery.com>
Tue, 12 Jun 2012 20:25:16 +0000 (20:25 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 12 Jun 2012 20:25:16 +0000 (20:25 +0000)
* gcc.dg/20031223-1.c: Add comments to check for multiple
messages reported for one line of source code.
* gcc.dg/Wconversion-integer.c: Likewise.
* gcc.dg/Wfatal-2.c: Likewise.
* gcc.dg/Wfatal.c: Likewise.
* gcc.dg/Wobjsize-1.c: Likewise.
* gcc.dg/c99-vla-jump-1.c: Likewise.
* gcc.dg/c99-vla-jump-2.c: Likewise.
* gcc.dg/c99-vla-jump-3.c: Likewise.
* gcc.dg/c99-vla-jump-4.c: Likewise.
* gcc.dg/c99-vla-jump-5.c: Likewise.
* gcc.dg/decl-9.c: Likewise.
* gcc.dg/declspec-10.c: Likewise.
* gcc.dg/declspec-18.c: Likewise.
* gcc.dg/mtune.c: Likewise.
* gcc.dg/parser-pr28152-2.c: Likewise.
* gcc.dg/parser-pr28152.c: Likewise.
* gcc.dg/pr14475.c: Likewise.
* gcc.dg/pr27953.c: Likewise.
* gcc.dg/pr28322-3.c: Likewise.
* gcc.dg/pr30457.c: Likewise.
* gcc.dg/pr30551-2.c: Likewise.
* gcc.dg/pr30551-3.c: Likewise.
* gcc.dg/pr30551-4.c: Likewise.
* gcc.dg/pr30551-5.c: Likewise.
* gcc.dg/pr30551-6.c: Likewise.
* gcc.dg/pr30551.c: Likewise.
* gcc.dg/pr45461.c: Likewise.
* gcc.dg/pr48552-1.c: Likewise.
* gcc.dg/pr48552-2.c: Likewise.
* gcc.dg/redecl-1.c: Likewise.
* gcc.dg/transparent-union-3.c: Likewise.
* gcc.dg/utf-dflt.c: Likewise.
* gcc.dg/utf-dflt2.c: Likewise.
* gcc.dg/vla-8.c: Likewise.
* gcc.dg/vla-init-1.c: Likewise.
* gcc.dg/wtr-int-type-1.c: Likewise.

From-SVN: r188478

37 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20031223-1.c
gcc/testsuite/gcc.dg/Wconversion-integer.c
gcc/testsuite/gcc.dg/Wfatal-2.c
gcc/testsuite/gcc.dg/Wfatal.c
gcc/testsuite/gcc.dg/Wobjsize-1.c
gcc/testsuite/gcc.dg/c99-vla-jump-1.c
gcc/testsuite/gcc.dg/c99-vla-jump-2.c
gcc/testsuite/gcc.dg/c99-vla-jump-3.c
gcc/testsuite/gcc.dg/c99-vla-jump-4.c
gcc/testsuite/gcc.dg/c99-vla-jump-5.c
gcc/testsuite/gcc.dg/decl-9.c
gcc/testsuite/gcc.dg/declspec-10.c
gcc/testsuite/gcc.dg/declspec-18.c
gcc/testsuite/gcc.dg/mtune.c
gcc/testsuite/gcc.dg/parser-pr28152-2.c
gcc/testsuite/gcc.dg/parser-pr28152.c
gcc/testsuite/gcc.dg/pr14475.c
gcc/testsuite/gcc.dg/pr27953.c
gcc/testsuite/gcc.dg/pr28322-3.c
gcc/testsuite/gcc.dg/pr30457.c
gcc/testsuite/gcc.dg/pr30551-2.c
gcc/testsuite/gcc.dg/pr30551-3.c
gcc/testsuite/gcc.dg/pr30551-4.c
gcc/testsuite/gcc.dg/pr30551-5.c
gcc/testsuite/gcc.dg/pr30551-6.c
gcc/testsuite/gcc.dg/pr30551.c
gcc/testsuite/gcc.dg/pr45461.c
gcc/testsuite/gcc.dg/pr48552-1.c
gcc/testsuite/gcc.dg/pr48552-2.c
gcc/testsuite/gcc.dg/redecl-1.c
gcc/testsuite/gcc.dg/transparent-union-3.c
gcc/testsuite/gcc.dg/utf-dflt.c
gcc/testsuite/gcc.dg/utf-dflt2.c
gcc/testsuite/gcc.dg/vla-8.c
gcc/testsuite/gcc.dg/vla-init-1.c
gcc/testsuite/gcc.dg/wtr-int-type-1.c

index 33fdad1802ad99a579f632dca09866537b80a829..6e9fbd93cf1a598fca14a135f0b59fdecb6df2f6 100644 (file)
@@ -1,5 +1,43 @@
 2012-06-12  Janis Johnson  <janisjo@codesourcery.com>
 
+       * gcc.dg/20031223-1.c: Add comments to check for multiple
+       messages reported for one line of source code.
+       * gcc.dg/Wconversion-integer.c: Likewise.
+       * gcc.dg/Wfatal-2.c: Likewise.
+       * gcc.dg/Wfatal.c: Likewise.
+       * gcc.dg/Wobjsize-1.c: Likewise.
+       * gcc.dg/c99-vla-jump-1.c: Likewise.
+       * gcc.dg/c99-vla-jump-2.c: Likewise.
+       * gcc.dg/c99-vla-jump-3.c: Likewise.
+       * gcc.dg/c99-vla-jump-4.c: Likewise.
+       * gcc.dg/c99-vla-jump-5.c: Likewise.
+       * gcc.dg/decl-9.c: Likewise.
+       * gcc.dg/declspec-10.c: Likewise.
+       * gcc.dg/declspec-18.c: Likewise.
+       * gcc.dg/mtune.c: Likewise.
+       * gcc.dg/parser-pr28152-2.c: Likewise.
+       * gcc.dg/parser-pr28152.c: Likewise.
+       * gcc.dg/pr14475.c: Likewise.
+       * gcc.dg/pr27953.c: Likewise.
+       * gcc.dg/pr28322-3.c: Likewise.
+       * gcc.dg/pr30457.c: Likewise.
+       * gcc.dg/pr30551-2.c: Likewise.
+       * gcc.dg/pr30551-3.c: Likewise.
+       * gcc.dg/pr30551-4.c: Likewise.
+       * gcc.dg/pr30551-5.c: Likewise.
+       * gcc.dg/pr30551-6.c: Likewise.
+       * gcc.dg/pr30551.c: Likewise.
+       * gcc.dg/pr45461.c: Likewise.
+       * gcc.dg/pr48552-1.c: Likewise.
+       * gcc.dg/pr48552-2.c: Likewise.
+       * gcc.dg/redecl-1.c: Likewise.
+       * gcc.dg/transparent-union-3.c: Likewise.
+       * gcc.dg/utf-dflt.c: Likewise.
+       * gcc.dg/utf-dflt2.c: Likewise.
+       * gcc.dg/vla-8.c: Likewise.
+       * gcc.dg/vla-init-1.c: Likewise.
+       * gcc.dg/wtr-int-type-1.c: Likewise.
+
        * c-c++-common/raw-string-3.c: Add comments to checks for multiple
        messages reported for for one line of source code.
        * c-c++-common/raw-string-5.c: Likewise.
index c2f35fcfe7fd6014b4af7db047270c2bbf44fd29..353397eff9088fb68bbd1985cbfc9157a634a2a4 100644 (file)
@@ -7,7 +7,7 @@
 
 void f ()
 {
- l: int; /* { dg-error "a label can only be part of a statement and a declaration is not a statement" } */
- /* { dg-warning "useless type name in empty declaration" "" { target *-*-* } 10 } */
- /* { dg-error "label at end of compound statement" "" { target *-*-* } 10 } */
+ l: int; /* { dg-error "a label can only be part of a statement and a declaration is not a statement" "not stmt" } */
+ /* { dg-warning "useless type name in empty declaration" "type name" { target *-*-* } 10 } */
+ /* { dg-error "label at end of compound statement" "label" { target *-*-* } 10 } */
 }
index d50b155699b634f991cffd5e171e0583d2049e2a..4479349e1ffb00ed1a835fba38a2f8c0dfcc3776 100644 (file)
@@ -40,10 +40,10 @@ void h (int x)
   fuc ('A');
   uc = 'A';
 
-  uc = x ? 1U : -1; /* { dg-warning " conversion" } */
-  /* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 43 } */
-  uc = x ? SCHAR_MIN : 1U; /* { dg-warning " conversion" } */
-  /* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 45 } */
+  uc = x ? 1U : -1; /* { dg-warning " conversion" "conversion" } */
+  /* { dg-warning "negative integer implicitly converted to unsigned type" "implicit" { target *-*-* } 43 } */
+  uc = x ? SCHAR_MIN : 1U; /* { dg-warning " conversion" "conversion" } */
+  /* { dg-warning "negative integer implicitly converted to unsigned type" "implicit" { target *-*-* } 45 } */
   uc = x ? 1 : -1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
   uc = x ? SCHAR_MIN : 1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
   ui = x ? 1U : -1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
index ba76e77bde1b60a7cca0c55dded9e5816f96a569..796fc8be416a6372d657de2a443435aa2814c8f4 100644 (file)
@@ -5,5 +5,5 @@
 int i = INT_MAX + 1; /* { dg-error "integer overflow in expression" } */
 int k = 1 / 0; 
 int j = INT_MIN - 1;
-/* { dg-message "being treated as errors" "" { target *-*-* } 0 } */
-/* { dg-message "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */
+/* { dg-message "being treated as errors" "treated as errors" { target *-*-* } 0 } */
+/* { dg-message "terminated due to -Wfatal-errors" "terminated" { target *-*-* } 0 } */
index 7ac260bfa6ae9ff2fb4991907ab04bccc4c2b109..6438d54e135dd3a8a80504f2339a675d27ef4be4 100644 (file)
@@ -5,8 +5,8 @@
 int i = INT_MAX + 1; /* { dg-warning "integer overflow in expression" } */
 int k = 1 / 0; /* { dg-error "division by zero" } */
 int j = INT_MIN - 1;
-/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
-/* { dg-message "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */
+/* { dg-message "some warnings being treated as errors" "treated as errors" {target "*-*-*"} 0 } */
+/* { dg-message "terminated due to -Wfatal-errors" "terminated" { target *-*-* } 0 } */
 
 
 
index 17e554b2a36ebfff513f4bca1bd266fa4bed61c6..291cfb9be91889a220f99e164696f4f84857bedb 100644 (file)
@@ -11,5 +11,5 @@ int main(int argc, char **argv)
 }
 
 /* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 6 } */
-/* { dg-message "file included" "" { target *-*-* } 0 } */
-/* { dg-message "inlined from" "" { target *-*-* } 0 } */
+/* { dg-message "file included" "included" { target *-*-* } 0 } */
+/* { dg-message "inlined from" "inlined" { target *-*-* } 0 } */
index 8e34b1001313e76387314266b8cd0b6092ab9f14..0747475e282d704ac166d14564ad029840ef4353 100644 (file)
@@ -305,5 +305,5 @@ void fa287 (int n) { { int b[n]; { int c[n]; 0;} { int d[n]; 0;} ; int e[n]; 0;}
 void fa288 (int n) { { int b[n]; { int c[n]; 0;} { int d[n]; 0;} ; int e[n]; 0;}; { int f[n]; { int g[n]; 0;}; { int h[n]; 0;}; ; int i[n]; 0;}; ; int j[n]; 0;a: goto a;  }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: label '\[^\n'\]*' defined here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: label '\[^\n'\]*' defined here" "note: defined" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "note: declared" { target *-*-* } 0 } */
index 2b4d4d56a5d4c0b635eb9666ece835b43e68670c..afea116924fe63a219447eec881b16701144f108 100644 (file)
@@ -305,5 +305,5 @@ void fb287 (int n) { P0A:goto P0A;{ int b[n]; P01A:goto P01A;{ int c[n]; P012A:g
 void fb288 (int n) { P0A:goto P0A;{ int b[n]; P01A:goto P01A;{ int c[n]; P012A:goto P012A;0;} P01B:goto P01B;{ int d[n]; P013A:goto P013A;0;} P01C:goto P01C;; int e[n]; P014A:goto P014A;0;}; P0B:goto P0B;{ int f[n]; P02A:goto P02A;{ int g[n]; P024A:goto P024A;0;}; P02B:goto P02B;{ int h[n]; P025A:goto P025A;0;}; P02C:goto P02C;; int i[n]; P026A:goto P026A;0;}; P0C:goto P0C;; int j[n]; P03A:goto P03A;0;a: goto a; P03B:goto P03B; }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: label '\[^\n'\]*' defined here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: label '\[^\n'\]*' defined here" "note: defined" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "note: declared" { target *-*-* } 0 } */
index ac1ae96c2c9f5ea7e5230d968ceab432cf1b276e..f7cb6ac63fbb0fd9868417a15d6dc75e68593cd2 100644 (file)
@@ -305,5 +305,5 @@ void fc287 (int n) { { typedef int (*b)[n]; { typedef int (*c)[n]; 0;} { typedef
 void fc288 (int n) { { typedef int (*b)[n]; { typedef int (*c)[n]; 0;} { typedef int (*d)[n]; 0;} ; typedef int (*e)[n]; 0;}; { typedef int (*f)[n]; { typedef int (*g)[n]; 0;}; { typedef int (*h)[n]; 0;}; ; typedef int (*i)[n]; 0;}; ; typedef int (*j)[n]; 0;a: goto a;  }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: label '\[^\n'\]*' defined here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: label '\[^\n'\]*' defined here" "note: defined" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "note: declared" { target *-*-* } 0 } */
index 848dfba945cd0a220d19c21e944ba544853988dd..6f0060e664a0b0da76a853ed891e26d68f54ea80 100644 (file)
@@ -305,5 +305,5 @@ void fd287 (int n) { P0A:goto P0A;{ typedef int (*b)[n]; P01A:goto P01A;{ typede
 void fd288 (int n) { P0A:goto P0A;{ typedef int (*b)[n]; P01A:goto P01A;{ typedef int (*c)[n]; P012A:goto P012A;0;} P01B:goto P01B;{ typedef int (*d)[n]; P013A:goto P013A;0;} P01C:goto P01C;; typedef int (*e)[n]; P014A:goto P014A;0;}; P0B:goto P0B;{ typedef int (*f)[n]; P02A:goto P02A;{ typedef int (*g)[n]; P024A:goto P024A;0;}; P02B:goto P02B;{ typedef int (*h)[n]; P025A:goto P025A;0;}; P02C:goto P02C;; typedef int (*i)[n]; P026A:goto P026A;0;}; P0C:goto P0C;; typedef int (*j)[n]; P03A:goto P03A;0;a: goto a; P03B:goto P03B; }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: label '\[^\n'\]*' defined here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: label '\[^\n'\]*' defined here" "note: defined" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "note: declared" { target *-*-* } 0 } */
index 683bcf21eb39d8f6ae8dfb659c7ac63414b6d863..fc5e04d1b9ea7877a6a69cabecab71454eb1ae37 100644 (file)
@@ -30,5 +30,5 @@ f (int a, int b)
 }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: switch starts here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: switch starts here" "note: starts" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "note: declared" { target *-*-* } 0 } */
index cc23b0724e11af8eb367d1b3dff96566cfa6aefd..83793a9a525f27946f74fc78021e873454a55514 100644 (file)
@@ -21,7 +21,7 @@ int f2()
 {
 b: a: ; /* { dg-bogus "a label can only be part of a statement" } */
 c: d e; /* { dg-error "a label can only be part of a statement" } */
-/* { dg-error "unknown type name 'd'" "" { target *-*-* } 23 } */
+/* { dg-error "unknown type name 'd'" "unknown type name" { target *-*-* } 23 } */
    ;
 }
 
index ddc60646ab0623f30cb604e7345762b4e03b694b..e6572bd82b314ff53ea2e0299aa56acc274eba20 100644 (file)
@@ -44,4 +44,4 @@ void i (void) { auto void y (void) {} } /* { dg-warning "ISO C forbids nested fu
 
 inline int main (void) { return 0; } /* { dg-warning "cannot inline function 'main'" } */
 
-/* { dg-message "error: register name not specified for 'y'" "" { target *-*-* } 19 } */
+/* { dg-message "error: register name not specified for 'y'" "not specified" { target *-*-* } 19 } */
index d29ff13732cd9c4382cca888d237de469c901273..dd4c262d4cd5b15a7e8d7968bee9dc37e59af74f 100644 (file)
@@ -5,7 +5,7 @@ static t1 *a;           /* { dg-error "unknown type name 't1'" } */
 
 int z;                  /* { dg-message "previous declaration of 'z'" } */
 typedef t2 *z;          /* { dg-error "unknown type name 't2'" } */
-/* { dg-error "'z' redeclared " "" { target *-*-* } 7 } */
+/* { dg-error "'z' redeclared " "redeclared" { target *-*-* } 7 } */
 
 extern t3 p1(void);     /* { dg-error "unknown type name 't3'" } */
 int p2(const t4 x);     /* { dg-error "unknown type name 't4'" } */
@@ -23,36 +23,36 @@ struct s {
 };
 
 typeof (z) c1;
-typeof (x1) c2;         /* { dg-error "undeclared" } */
+typeof (x1) c2;         /* { dg-error "undeclared" "undeclared" } */
 typeof (const t11) c3;  /* { dg-error "unknown type name 't11'" } */
-typeof (t12 *) c3;      /* { dg-error "unknown type name 't12'" "" { xfail *-*-* } } */
-/* { dg-bogus "unknown type name 'x1'" "" { target *-*-* } 26 } */
-/* { dg-bogus "undeclared" "" { xfail *-*-* } 28 } */
-/* { dg-bogus "expected expression before" "" { xfail *-*-* } 28 } */
+typeof (t12 *) c3;      /* { dg-error "unknown type name 't12'" "t12" { xfail *-*-* } } */
+/* { dg-bogus "unknown type name 'x1'" unknown"" { target *-*-* } 26 } */
+/* { dg-bogus "undeclared" "undeclared" { xfail *-*-* } 28 } */
+/* { dg-bogus "expected expression before" "expected" { xfail *-*-* } 28 } */
 
 int recover1;
 
 int s0 = sizeof (z);
-int s1 = sizeof (x2);          /* { dg-error "undeclared" } */
+int s1 = sizeof (x2);          /* { dg-error "undeclared" "undeclared" } */
 int s2 = sizeof (const t13);   /* { dg-error "unknown type name 't13'" } */
-int s3 = sizeof (t14 *);       /* { dg-error "unknown type name 't14'" "" { xfail *-*-* } } */
+int s3 = sizeof (t14 *);       /* { dg-error "unknown type name 't14'" "t14" { xfail *-*-* } } */
 
 int recover2;
 
-/* { dg-bogus "unknown type name 'x2'" "" { target *-*-* } 36 } */
-/* { dg-bogus "undeclared" "" { xfail *-*-* } 38 } */
-/* { dg-bogus "expected expression before" "" { xfail *-*-* } 38 } */
+/* { dg-bogus "unknown type name 'x2'" "unknown" { target *-*-* } 36 } */
+/* { dg-bogus "undeclared" "undeclared" { xfail *-*-* } 38 } */
+/* { dg-bogus "expected expression before" "expected" { xfail *-*-* } 38 } */
 
 int a0 = __alignof__ (z);
 int a1 = __alignof__ (x3);          /* { dg-error "undeclared" } */
 int a2 = __alignof__ (const t15);   /* { dg-error "unknown type name 't15'" } */
-int a3 = __alignof__ (t16 *);       /* { dg-error "unknown type name 't16'" "" { xfail *-*-* } } */
+int a3 = __alignof__ (t16 *);       /* { dg-error "unknown type name 't16'" "t16" { xfail *-*-* } } */
 
 int recover3;
 
 /* { dg-bogus "unknown type name 'x3'" "" { target *-*-* } 47 } */
-/* { dg-bogus "undeclared" "" { xfail *-*-* } 49 } */
-/* { dg-bogus "expected expression before" "" { xfail *-*-* } 49 } */
+/* { dg-bogus "undeclared" "undeclared" { xfail *-*-* } 49 } */
+/* { dg-bogus "expected expression before" "expected" { xfail *-*-* } 49 } */
 
 
 /* Cannot detect (undefd_type *) or (undefd_type (*) because it would
@@ -60,14 +60,14 @@ int recover3;
 
 const char *f1()
 {
-  return (const t17) "abc";       /* { dg-error "unknown type name 't17'" } */
-/* { dg-bogus "expected" "" { target *-*-* } 63 } */
+  return (const t17) "abc";       /* { dg-error "unknown type name 't17'" "t17" } */
+/* { dg-bogus "expected" "expected" { target *-*-* } 63 } */
 }
 
 const char *f2()
 {
-  return (const t18 *) "abc";     /* { dg-error "unknown type name 't18'" } */
-/* { dg-bogus "expected" "" { target *-*-* } 69 } */
+  return (const t18 *) "abc";     /* { dg-error "unknown type name 't18'" "t18" } */
+/* { dg-bogus "expected" "expected" { target *-*-* } 69 } */
 }
 
 
@@ -76,15 +76,15 @@ const char *f2()
 
 void *f3(int x)
 {
-  return (void *) ((void *(*)(t19)) f3);       /* { dg-error "unknown type name 't19'" } */
-/* { dg-bogus "expected" "" { xfail *-*-* } 79 } */
+  return (void *) ((void *(*)(t19)) f3);       /* { dg-error "unknown type name 't19'" "t19" } */
+/* { dg-bogus "expected" "expected" { xfail *-*-* } 79 } */
 }
 
 const void *f4()
 {
   return &((const t20){1});       /* { dg-error "unknown type name 't20'" } */
-/* { dg-bogus "return discards 'const'" "" { target *-*-* } 85 } */
-/* { dg-bogus "expected" "" { target *-*-* } 85 } */
+/* { dg-bogus "return discards 'const'" "discards" { target *-*-* } 85 } */
+/* { dg-bogus "expected" "expected" { target *-*-* } 85 } */
 }
 
 int f5(__builtin_va_list ap)
@@ -95,6 +95,6 @@ int f5(__builtin_va_list ap)
 
 int f6(void)
 {
-  return __builtin_offsetof (t23, field); /* { dg-error "unknown type name 't23'" } */
-/* { dg-bogus "request for member" "" { target *-*-* } 98 } */
+  return __builtin_offsetof (t23, field); /* { dg-error "unknown type name 't23'" "t23" } */
+/* { dg-bogus "request for member" "request" { target *-*-* } 98 } */
 }
index 88c5db8dda73ad1871ca947823a4d3a72da7d390..9195fd1ff161485b424051eaa9b129168da569da 100644 (file)
@@ -1,8 +1,8 @@
 /* { dg-do compile } */
 /* { dg-skip-if "" { *-*-* } { "-mtune=*" } { "" } } */
 /* { dg-options "-mtune=foo" } */
-/* { dg-error "mtune" "" { target *-*-* } 0 } */
-/* { dg-bogus "march" "" { target *-*-* } 0 } */
-/* { dg-bogus "mcpu" "" { target *-*-* } 0 } */
+/* { dg-error "mtune" "mtune" { target *-*-* } 0 } */
+/* { dg-bogus "march" "march" { target *-*-* } 0 } */
+/* { dg-bogus "mcpu" "mcpu" { target *-*-* } 0 } */
 /* { dg-prune-output "note: valid arguments.*" } */
 int i;
index 18dc1e63dec915adfb88a5c44b9d1f46b8e7e6ba..b1502257d0ac7568bc6b36e09a356732dcd88d35 100644 (file)
@@ -7,5 +7,5 @@ main (void)
   __complex__ float z;
 
   z = __complex__ (1.90000007326203904e+19, 0.0);   /* { dg-error "__complex__" } */
-  z = __complex__ (1.0e+0, 0.0) / z;   /* { dg-error "__complex__" } */
-  /* { dg-error "at end of input" "" { target *-*-* } 10 } */
+  z = __complex__ (1.0e+0, 0.0) / z;   /* { dg-error "__complex__" "Complex" } */
+  /* { dg-error "at end of input" "end of input" { target *-*-* } 10 } */
index 99534c10bfe50a6ba82faa0e295c42711b82c8a7..afb574bc5f2c9008f74765cb130899756b381421 100644 (file)
@@ -7,5 +7,5 @@ main (void)
   _Complex float z;
 
   z = _Complex (1.90000007326203904e+19, 0.0);   /* { dg-error "_Complex" } */
-  z = _Complex (1.0e+0, 0.0) / z;   /* { dg-error "_Complex" } */
-  /* { dg-error "at end of input" "" { target *-*-* } 10 } */
+  z = _Complex (1.0e+0, 0.0) / z;   /* { dg-error "_Complex" "_Complex" } */
+  /* { dg-error "at end of input" "end of input" { target *-*-* } 10 } */
index 4fa5b0436614184b1c9216b0d0841a05a1807649..4bad2b369d1e03f4dbe73ffd391c23ccede19dd8 100644 (file)
@@ -3,8 +3,8 @@
 
 struct tree_common
 {
-  enum tree_code code : 8; /* { dg-error "ISO C forbids forward references to" "" } */
-  /* { dg-error "type of bit-field .code. is a GCC extension" "" { target *-*-* } 6 } */
-  /* { dg-warning "narrower than values of its type" "" { target *-*-* } 6 } */
-  /* { dg-error "incomplete type" "" { target *-*-* } 6 } */
+  enum tree_code code : 8; /* { dg-error "ISO C forbids forward references to" "forward ref" } */
+  /* { dg-error "type of bit-field .code. is a GCC extension" "extension" { target *-*-* } 6 } */
+  /* { dg-warning "narrower than values of its type" "narrower" { target *-*-* } 6 } */
+  /* { dg-error "incomplete type" "incomplete" { target *-*-* } 6 } */
 };
index 245b59e0ba8710141a420885aa6b43e75f6e1f20..8da92c1d3e2c48dcd422af63f862ef09cdbd7f83 100644 (file)
@@ -1,8 +1,8 @@
 /* PR c/27953 */
 
-void foo(struct A a) {}  /* { dg-warning "declared inside parameter list" } */
-/* { dg-warning "its scope is only" "" { target *-*-* } 3 } */
-/* { dg-error "incomplete type" "" { target *-*-* } 3 } */
+void foo(struct A a) {}  /* { dg-warning "declared inside parameter list" "inside" } */
+/* { dg-warning "its scope is only" "scope" { target *-*-* } 3 } */
+/* { dg-error "incomplete type" "incomplete" { target *-*-* } 3 } */
 
-void foo() {}            /* { dg-error "redefinition" } */
-/* { dg-message "note: previous definition" "" { target *-*-* } 3 } */
+void foo() {}            /* { dg-error "redefinition" "redef" } */
+/* { dg-message "note: previous definition" "previous" { target *-*-* } 3 } */
index 7a5a4c5790175278410ae6377d56756b85e05e6d..e714a3cc6f7697e84aba47a2cd3a64c6618b2d6e 100644 (file)
@@ -6,5 +6,5 @@ void foo(void)
 {
   int i =  1;
 }
-/* { dg-message "unrecognized command line option .-fno-foobar." "" { target *-*-* } 0 } */
-/* { dg-message "unrecognized command line option .-mno-foobar." "" { target *-*-* } 0 } */
+/* { dg-message "unrecognized command line option .-fno-foobar." "f" { target *-*-* } 0 } */
+/* { dg-message "unrecognized command line option .-mno-foobar." "m" { target *-*-* } 0 } */
index f52332d0a1eff74dca5d9f75f0c5f2ff75a81cdd..d72f47c1eda1f044b6f81e03f4063550e40b5350 100644 (file)
@@ -17,9 +17,9 @@ void foo(register short paramN, ...)
   va_start(ap, paramN); /* { dg-warning "undefined behaviour when second parameter of 'va_start' is declared with 'register' storage" } */
   
   /* Undefined by C99 7.15.1.1p2:  */
-  (void) va_arg(ap, char); /* { dg-warning "'char' is promoted to 'int' when passed through '...'" } */
-  /* { dg-message "note: .so you should pass .int. not .char. to .va_arg.." "" { target *-*-* } 20 } */
-  /* { dg-message "note: if this code is reached, the program will abort"  "" { target *-*-* } 20 } */
+  (void) va_arg(ap, char); /* { dg-warning "'char' is promoted to 'int' when passed through '...'" "promoted" } */
+  /* { dg-message "note: .so you should pass .int. not .char. to .va_arg.." "int not char" { target *-*-* } 20 } */
+  /* { dg-message "note: if this code is reached, the program will abort"  "will abort" { target *-*-* } 20 } */
 
   va_end(ap);
 }
index fdd5df668687186baed5ab604e1723b183899612..aa3c117c413e1bb099bed5f0f9d0e2e7a2025824 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "" } */
 
-void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." } */
-/* { dg-bogus ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-bogus "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." "int" } */
+/* { dg-bogus ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-bogus "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
 
index bc33187e50b677075cbda7fde0da8faeb95c9396..121cfe873e314ec76d0378bbb72e0f89f78a0940 100644 (file)
@@ -2,6 +2,6 @@
 /* { dg-do compile } */
 /* { dg-options "-pedantic-errors" } */
 /* { dg-skip-if "-Wmain not enabled with -pedantic on SPU" { spu-*-* } } */
-void main(char a) {} /* { dg-error "first argument of .main. should be .int." } */
-/* { dg-error ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-error "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-error "first argument of .main. should be .int." "int" } */
+/* { dg-error ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-error "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
index 4803dbac01d16e251ea5105414a5c50f8c4c871d..a025a660b8ffc073b6083abc810a86b6a592f646 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "-pedantic-errors -Wno-main" } */
 
-void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." } */
-/* { dg-bogus ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-bogus "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." "int" } */
+/* { dg-bogus ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-bogus "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
 
index 060ed016b3cc0f920109f8343e6213ff3e4a438b..95685925ae700d106b7ba97816b8dec4d00826a5 100644 (file)
@@ -2,6 +2,6 @@
 /* { dg-do compile } */
 /* { dg-options "-pedantic -Wno-main" } */
 
-void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." } */
-/* { dg-bogus ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-bogus "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-bogus "first argument of .main. should be .int." "int" } */
+/* { dg-bogus ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-bogus "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
index 48824e3a9d08923a6ef5659bffb2f17017376ec0..ba4cefcebfbd59a8d381d5854870f0fc4a8d3ec2 100644 (file)
@@ -2,6 +2,6 @@
 /* { dg-do compile } */
 /* { dg-options "-pedantic" } */
 /* { dg-skip-if "-Wmain not enabled with -pedantic on SPU" { spu-*-* } } */
-void main(char a) {} /* { dg-warning "first argument of .main. should be .int." } */
-/* { dg-warning ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-warning "first argument of .main. should be .int." "int" } */
+/* { dg-warning ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-warning "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
index 218a50ad9c62b7985e495ee2ed5b0f9f09af3909..68ecdedb3fe811ff47d4f2cb7c1fe0ba85a58598 100644 (file)
@@ -2,6 +2,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wall" } */
 /* { dg-skip-if "-Wmain not enabled with -Wall on SPU" { spu-*-* } } */
-void main(char a) {} /* { dg-warning "first argument of .main. should be .int." } */
-/* { dg-warning ".main. takes only zero or two arguments" "" { target *-*-* } 5 } */ 
-/* { dg-warning "return type of .main. is not .int." "" { target *-*-* } 5 } */ 
+void main(char a) {} /* { dg-warning "first argument of .main. should be .int." "int" } */
+/* { dg-warning ".main. takes only zero or two arguments" "zero or two" { target *-*-* } 5 } */ 
+/* { dg-warning "return type of .main. is not .int." "return type" { target *-*-* } 5 } */ 
index 7968f73356ec913d6890f18160bedd24a2b2a6e2..7f287bd0305471828bd454535a45e9713d2964fe 100644 (file)
@@ -9,10 +9,10 @@ foo (int i, ...)
   short e;
   va_list ap;
   va_start (ap, i);
-  e = va_arg (ap, short);      /* { dg-warning "is promoted" } */
+  e = va_arg (ap, short);      /* { dg-warning "is promoted" "promoted" } */
   va_end (ap);
   return e;
 }
 
-/* { dg-message "note: \\(so you should pass" "" {target *-*-* } 12 } */
-/* { dg-message "note: if this code" "" {target *-*-* } 12 } */
+/* { dg-message "note: \\(so you should pass" "should pass" {target *-*-* } 12 } */
+/* { dg-message "note: if this code" "if this code" {target *-*-* } 12 } */
index 5590549a7cef0bf859b18b74ef9d851c309f4fe8..877c4c2a88199c17171d6b854ab96442c8dce280 100644 (file)
@@ -7,15 +7,15 @@ struct S;
 void
 f1 (void *x)
 {
-  __asm volatile ("" : : "r" (*x));    /* { dg-warning "dereferencing" } */
-}                                      /* { dg-error "invalid use of void expression" "" { target *-*-* } 10 } */
+  __asm volatile ("" : : "r" (*x));    /* { dg-warning "dereferencing" "deref" } */
+}                                      /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 10 } */
 
 void
 f2 (void *x)
 {
-  __asm volatile ("" : "=r" (*x));     /* { dg-warning "dereferencing" } */
-}                                      /* { dg-error "invalid use of void expression" "" { target *-*-* } 16 } */
-                                       /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 16 } */
+  __asm volatile ("" : "=r" (*x));     /* { dg-warning "dereferencing" "deref" } */
+}                                      /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 16 } */
+                                       /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 16 } */
 void
 f3 (void *x)
 {
@@ -31,15 +31,15 @@ f4 (void *x)
 void
 f5 (void *x)
 {
-  __asm volatile ("" : : "g" (*x));    /* { dg-warning "dereferencing" } */
-}                                      /* { dg-error "invalid use of void expression" "" { target *-*-* } 34 } */
+  __asm volatile ("" : : "g" (*x));    /* { dg-warning "dereferencing" "deref" } */
+}                                      /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 34 } */
 
 void
 f6 (void *x)
 {
-  __asm volatile ("" : "=g" (*x));     /* { dg-warning "dereferencing" } */
-}                                      /* { dg-error "invalid use of void expression" "" { target *-*-* } 40 } */
-                                       /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 40 } */
+  __asm volatile ("" : "=g" (*x));     /* { dg-warning "dereferencing" "deref" } */
+}                                      /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 40 } */
+                                       /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 40 } */
 void
 f7 (struct S *x)
 {
@@ -49,5 +49,5 @@ f7 (struct S *x)
 void
 f8 (struct S *x)
 {
-  __asm volatile ("" : "=r" (*x));     /* { dg-error "dereferencing pointer to incomplete type" } */
-}                                      /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 52 } */
+  __asm volatile ("" : "=r" (*x));     /* { dg-error "dereferencing pointer to incomplete type" "incomplete" } */
+}                                      /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 52 } */
index 4408279f8acefe3a094c12f0c96ec9d3bd5fbcb7..a7969837bf5f43021b49e42defe8abd46d2b931f 100644 (file)
@@ -7,15 +7,15 @@ struct S;
 void
 f1 (void *x)
 {
-  __asm ("" : : "r" (*x));     /* { dg-warning "dereferencing" } */
-}                              /* { dg-error "invalid use of void expression" "" { target *-*-* } 10 } */
+  __asm ("" : : "r" (*x));     /* { dg-warning "dereferencing" "deref" } */
+}                              /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 10 } */
 
 void
 f2 (void *x)
 {
-  __asm ("" : "=r" (*x));      /* { dg-warning "dereferencing" } */
-}                              /* { dg-error "invalid use of void expression" "" { target *-*-* } 16 } */
-                               /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 16 } */
+  __asm ("" : "=r" (*x));      /* { dg-warning "dereferencing" "deref" } */
+}                              /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 16 } */
+                               /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 16 } */
 void
 f3 (void *x)
 {
@@ -31,15 +31,15 @@ f4 (void *x)
 void
 f5 (void *x)
 {
-  __asm ("" : : "g" (*x));     /* { dg-warning "dereferencing" } */
-}                              /* { dg-error "invalid use of void expression" "" { target *-*-* } 34 } */
+  __asm ("" : : "g" (*x));     /* { dg-warning "dereferencing" "deref" } */
+}                              /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 34 } */
 
 void
 f6 (void *x)
 {
-  __asm ("" : "=g" (*x));      /* { dg-warning "dereferencing" } */
-}                              /* { dg-error "invalid use of void expression" "" { target *-*-* } 40 } */
-                               /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 40 } */
+  __asm ("" : "=g" (*x));      /* { dg-warning "dereferencing" "deref" } */
+}                              /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } 40 } */
+                               /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 40 } */
 void
 f7 (struct S *x)
 {
@@ -49,5 +49,5 @@ f7 (struct S *x)
 void
 f8 (struct S *x)
 {
-  __asm ("" : "=r" (*x));      /* { dg-error "dereferencing pointer to incomplete type" } */
-}                              /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 52 } */
+  __asm ("" : "=r" (*x));      /* { dg-error "dereferencing pointer to incomplete type" "incomplete" } */
+}                              /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } 52 } */
index 6a7d8faecafcfe319c9c7274681ea5a7c45c1c67..e04ec801dbd3dad8bc5d7fec9fe2c21ccad7837c 100644 (file)
@@ -52,21 +52,21 @@ void test3(void)
 
 void prime4(void)
 {
-  bar4();                      /* { dg-warning "implicit declaration of function" } */
+  bar4();                      /* { dg-warning "implicit declaration of function" "implicit" } */
 }
 
 void test4(void)
 {
   extern double bar4(double);  /* { dg-error "conflict" } */
-/* { dg-message "note: previous implicit declaration" "" { target *-*-* } 55 } */
+/* { dg-message "note: previous implicit declaration" "previous" { target *-*-* } 55 } */
 }
 
 /* Implicit decl, clashing with extern at previous function scope.  */
 
 void prime5(void)
 {
-  extern double bar5(double);  /* { dg-message "note: previous declaration" "" } */
-} /* { dg-message "note: previous implicit declaration" "" { target *-*-* } 68 } */
+  extern double bar5(double);  /* { dg-message "note: previous declaration" "previous 1" } */
+} /* { dg-message "note: previous implicit declaration" "previous 2" { target *-*-* } 68 } */
 
 void test5(void)
 {
index 25d1869561bcfc1fa228b7bcf3917a386c5ffbbd..3e4cd77fa4c7846f9b3e83f19bde0414aebac64b 100644 (file)
@@ -6,15 +6,15 @@
 
 enum e { A };
 
-union __attribute__((__transparent_union__)) ue1 { enum e; }; /* { dg-warning "declaration does not declare anything" } */
-/* { dg-warning "union cannot be made transparent" "" { target *-*-* } 9 } */
-union ue2 { enum e; } __attribute__((__transparent_union__)); /* { dg-warning "declaration does not declare anything" } */
-/* { dg-warning "union cannot be made transparent" "" { target *-*-* } 11 } */
+union __attribute__((__transparent_union__)) ue1 { enum e; }; /* { dg-warning "declaration does not declare anything" "not anything" } */
+/* { dg-warning "union cannot be made transparent" "cannot" { target *-*-* } 9 } */
+union ue2 { enum e; } __attribute__((__transparent_union__)); /* { dg-warning "declaration does not declare anything" "not anything" } */
+/* { dg-warning "union cannot be made transparent" "cannot" { target *-*-* } 11 } */
 
-union __attribute__((__transparent_union__)) ui1 { int; }; /* { dg-warning "declaration does not declare anything" } */
-/* { dg-warning "union cannot be made transparent" "" { target *-*-* } 14 } */
-union ui2 { int; } __attribute__((__transparent_union__)); /* { dg-warning "declaration does not declare anything" } */
-/* { dg-warning "union cannot be made transparent" "" { target *-*-* } 16 } */
+union __attribute__((__transparent_union__)) ui1 { int; }; /* { dg-warning "declaration does not declare anything" "not anything" } */
+/* { dg-warning "union cannot be made transparent" "cannot" { target *-*-* } 14 } */
+union ui2 { int; } __attribute__((__transparent_union__)); /* { dg-warning "declaration does not declare anything" "no anything" } */
+/* { dg-warning "union cannot be made transparent" "cannot" { target *-*-* } 16 } */
 
 union __attribute__((__transparent_union__)) u1 { };
 /* { dg-warning "union cannot be made transparent" "" { target *-*-* } 19 } */
index 7281ef3c73e7f0d31cdb3fd0990f6002fd403bd5..f672f0af57a9acae53766726a7f4e1e2502ac350 100644 (file)
@@ -3,10 +3,10 @@
 /* { dg-do compile } */
 /* { dg-options "" } */
 
-const unsigned short   c0      = u'a';         /* { dg-error "undeclared" } */
-               /* { dg-error "expected ',' or ';'" "" { target *-*-* } 6 } */
-const unsigned long    c1      = U'a';         /* { dg-error "undeclared" } */
-               /* { dg-error "expected ',' or ';'" "" { target *-*-* } 8 } */
+const unsigned short   c0      = u'a';         /* { dg-error "undeclared" "undeclared" } */
+               /* { dg-error "expected ',' or ';'" "expected" { target *-*-* } 6 } */
+const unsigned long    c1      = U'a';         /* { dg-error "undeclared" "undeclared" } */
+               /* { dg-error "expected ',' or ';'" "expected" { target *-*-* } 8 } */
 
 #define u      1 +
 #define U      2 +
index ab101f45b787a8eb2fbe8c7c92b97662a133cbb3..022c081fdb7ca1d969a0b987eff1ed20e169a900 100644 (file)
@@ -2,8 +2,8 @@
 /* { dg-do compile } */
 /* { dg-options "" } */
 
-const void     *s0 = u8"a";            /* { dg-error "undeclared" } */
-               /* { dg-error "expected ',' or ';'" "" { target *-*-* } 5 } */
+const void     *s0 = u8"a";            /* { dg-error "undeclared" "undeclared" } */
+               /* { dg-error "expected ',' or ';'" "expected" { target *-*-* } 5 } */
 
 #define u8     "a"
 
index 6e14a06875ee3480106ce8a7dc136be7b82595c0..fea2337cb071e9274919a5c48ed0874c883e894b 100644 (file)
@@ -30,5 +30,5 @@ void foo2(int n) {
 }
 
 /* Match extra informative notes.  */
-/* { dg-message "note: label '\[^\n'\]*' defined here" "note: expected" { target *-*-* } 0 } */
-/* { dg-message "note: '\[^\n'\]*' declared here" "note: expected" { target *-*-* } 0 } */
+/* { dg-message "note: label '\[^\n'\]*' defined here" "defined" { target *-*-* } 0 } */
+/* { dg-message "note: '\[^\n'\]*' declared here" "declared" { target *-*-* } 0 } */
index 68e7d651210dac1ab2d6bf64aed40447ff2dc009..316bf98bc68d666902f8ce7112633452e527aa26 100644 (file)
@@ -10,6 +10,6 @@ void
 foo (void)
 {
   int x[a] = { 1 }; /* { dg-error "variable-sized object may not be initialized" "VLA init" } */
-  /* { dg-warning "excess elements in array initializer" "" { target *-*-* } 12 } */
-  /* { dg-warning "near initialization" "" { target *-*-* } 12 } */
+  /* { dg-warning "excess elements in array initializer" "excess" { target *-*-* } 12 } */
+  /* { dg-warning "near initialization" "near" { target *-*-* } 12 } */
 }
index c0abb44055eb0341b386cf7d136f63abff3a911f..c0a600d842a3dc8f44d1a41d11ec9c7aa0b5907b 100644 (file)
@@ -25,8 +25,8 @@ testfunc ()
 
   /* But this one should, since it doesn't fit in long (long), but
      does fit in unsigned long (long).  */
-  i = 18446744073709551615; /* { dg-warning "integer constant is so large that it is unsigned" "decimal constant" } */
-  /* { dg-warning "this decimal constant would be unsigned in ISO C90" "decimal constant" { target *-*-* } 28 } */
+  i = 18446744073709551615; /* { dg-warning "integer constant is so large that it is unsigned" "so large" } */
+  /* { dg-warning "this decimal constant would be unsigned in ISO C90" "ISO C90" { target *-*-* } 28 } */
 
 # 29 "sys-header.h" 3
 }