+2000-12-07 Neil Booth <neilb@earthling.net>
+
+ * gcc.dg/wtr-aggr-init-1.c, wtr-escape-1.c, wtr-int-type-1.c,
+ wtr-label-1.c, wtr-static-1.c, wtr-strcat-1.c, wtr-suffix-1.c,
+ wtr-switch-1.c, wtr-unary-plus-1.c, wtr-union-init-1.c
+ wtr-union-init-2.c, wtr-union-init-3.c: Update.
+ * gcc.dg/cpp/extratokens.c, tr-warn4.c, tr-warn5.c, tr-warn6.c:
+ Update.
+
2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use
#ident "something" bar /* { dg-error "extra tokens" "tokens after #ident" } */
-#line 36 "file.c" 3
+# 36 "file.c" 3
/* ... but in a system header, it's acceptable. */
#ifdef KERNEL
#if 1l
#endif
-#line 17 "sys-header.h" 3
+# 17 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
#if 1U
#if +1 /* { dg-warning "unary plus operator" "unary plus operator" } */
#endif
-#line 11 "sys-header.h" 3
+# 11 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
#if +1
/* Catch the second warning from the above line. */
/* { dg-warning "macro argument \"world\" would be stringified" "traditional stringification" { target *-*-* } 13 } */
-#line 19 "sys-header.h" 3
+# 19 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
#define bar1(h) sdf "h3" fds "h"
f3 = f4;
}
-#line 26 "sys-header.h" 3
+# 26 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
struct foo f5 = { 0, 0 };
c = '\x2'; /* { dg-warning "the meaning of" "escaped character warning " } */
c = '\n';
-#line 17 "sys-header.h" 3
+# 17 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
c = '\a';
test passes and both matched by checking for "integer constant". */
i = 18446744073709551615; /* { dg-warning "integer constant" "integer constant" } */
-#line 29 "sys-header.h" 3
+# 29 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
i = 0x80000000;
j: ;
}
-#line 32 "sys-header.h" 3
+# 32 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
void
static void testfunc1(void);
void testfunc1(void) {} /* { dg-warning "non-static.*follows static" "non-static follows static" } */
-#line 11 "sys-header.h" 3
+# 11 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
static void testfunc2(void);
foo = "hello" "hello"; /* { dg-warning "string concatenation" "string concatenation" } */
-#line 15 "sys-header.h" 3
+# 15 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
foo = "hello" "hello";
f = 1.0L; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */
f = 1.0l; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */
-#line 24 "sys-header.h" 3
+# 24 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
i = 1L;
break;
}
-#line 17 "sys-header.h" 3
+# 17 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
switch (l)
i = +1; /* { dg-warning "unary plus operator" "unary plus operator" } */
i = +i; /* { dg-warning "unary plus operator" "unary plus operator" } */
-#line 16 "sys-header.h" 3
+# 16 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
i = +1;
static union foo f1 = { 0 };
static union foo f2 = { 1 }; /* { dg-warning "traditional C rejects initialization of unions" "initialization of unions" } */
-#line 21 "sys-header.h" 3
+# 21 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
static union foo f3 = { 0 };
static union foo1 f7 = {1.0}; /* { dg-warning "traditional C rejects initialization of unions" "initialization of unions" } */
static union foo2 f8 = {1.0}; /* { dg-warning "traditional C rejects initialization of unions" "initialization of unions" } */
-#line 35 "sys-header.h" 3
+# 35 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
static union foo1 b1 = {0};
static struct baz2 f5 = { 1, 2, {0} };
static struct baz2 f6 = { 1, 2, {1} }; /* { dg-warning "traditional C rejects initialization of unions" "initialization of unions" } */
-#line 54 "sys-header.h" 3
+# 54 "sys-header.h" 3
/* We are in system headers now, no -Wtraditional warnings should issue. */
static union foo b1 = {{0,0}};