diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-17 20:58:47 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-17 20:58:47 +0000 |
commit | 22b0eafbad73648ab8c349f0632895748a8853ce (patch) | |
tree | 16f0dfe61e753b10f4e003e790bad8ded231d221 /gcc/testsuite/gcc.dg/cpp | |
parent | 455ca9be256f14048712c4c47c48dbbb7bf590f8 (diff) | |
download | gcc-22b0eafbad73648ab8c349f0632895748a8853ce.tar.gz |
* gcc.target/powerpc/pr18096-1.c: Change dg-warning to dg-error.
* gcc.dg/cpp/include2.c: Ditto.
* gcc.dg/cpp/mac-dir-2.c: Ditto.
* gcc.dg/cpp/paste5.c: Ditto.
* gcc.dg/cpp/paste6.c: Ditto.
* gcc.dg/cpp/paste8.c: Ditto.
* gcc.dg/cpp/paste11.c: Ditto.
* gcc.dg/cpp/paste13.c: Ditto.
* gcc.dg/cpp/skipping2.c: Ditto.
* gcc.dg/reg-vol-struct-1.c: Ditto.
* gcc.dg/Wshadow-1.c: Ditto.
* gcc.dg/cpp/trad/comment.c: Ditto.
* gcc.dg/cpp/trad/literals-2.c: Change dg-error to dg-warning.
* gcc.dg/cpp/if-2.c: Ditto.
* gcc.dg/array-5.c: Ditto.
* gcc.dg/inline-15.c: Ditto.
* gcc.dg/pr27953.c: Ditto.
* gcc.dg/Wno-c++-compat.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124811 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/if-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/include2.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/mac-dir-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste11.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste13.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste5.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste6.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste8.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/skipping2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/trad/comment.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/trad/literals-2.c | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/if-2.c b/gcc/testsuite/gcc.dg/cpp/if-2.c index 8bca251b46b..dc136b45634 100644 --- a/gcc/testsuite/gcc.dg/cpp/if-2.c +++ b/gcc/testsuite/gcc.dg/cpp/if-2.c @@ -21,7 +21,7 @@ #if 'abcd' /* { dg-warning "(multi-character character constant)|(character constant (is )?too long)" "multi-character charconst" } */ #endif -#if 'abcdefghi' /* { dg-error "character constant (is )?too long" "charconst too long" } */ +#if 'abcdefghi' /* { dg-warning "character constant (is )?too long" "charconst too long" } */ #endif #if '' /* { dg-error "empty character constant" "empty charconst" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/include2.c b/gcc/testsuite/gcc.dg/cpp/include2.c index 46844bf2cc1..cda818ed5af 100644 --- a/gcc/testsuite/gcc.dg/cpp/include2.c +++ b/gcc/testsuite/gcc.dg/cpp/include2.c @@ -7,8 +7,8 @@ /* Source: Neil Booth, 4 Nov 2000. */ -#include <silly\>> /* { dg-warning "extra tokens" "" } */ -#include "silly\"" /* { dg-warning "extra tokens" "" } */ +#include <silly\>> /* { dg-error "extra tokens" "" } */ +#include "silly\"" /* { dg-error "extra tokens" "" } */ /* These error is No such file or directory, just once. However, this message is locale-dependent, so don't test for it. */ diff --git a/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c index b574cfd71cf..b31ab3bee7b 100644 --- a/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c +++ b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c @@ -11,6 +11,6 @@ #define f(x) x f ( -#if 1 /* { dg-warning "not portable" } */ +#if 1 /* { dg-error "not portable" } */ 1) #endif diff --git a/gcc/testsuite/gcc.dg/cpp/paste11.c b/gcc/testsuite/gcc.dg/cpp/paste11.c index 18530b3448a..e3860ebb745 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste11.c +++ b/gcc/testsuite/gcc.dg/cpp/paste11.c @@ -9,7 +9,7 @@ glue (ident, 12) /* OK. */ glue (ident, 12e3) /* OK. */ -glue (ident, 12e+3) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, 12e-3) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, 1.2) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, .12) /* { dg-warning "valid preprocessing tok" } */ +glue (ident, 12e+3) /* { dg-error "valid preprocessing tok" } */ +glue (ident, 12e-3) /* { dg-error "valid preprocessing tok" } */ +glue (ident, 1.2) /* { dg-error "valid preprocessing tok" } */ +glue (ident, .12) /* { dg-error "valid preprocessing tok" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste13.c b/gcc/testsuite/gcc.dg/cpp/paste13.c index e59c2099656..62c72d44993 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste13.c +++ b/gcc/testsuite/gcc.dg/cpp/paste13.c @@ -6,4 +6,4 @@ spellings. Neil Booth, 9 Oct 2002. */ #define a /##/= -a /* { dg-warning "valid preprocessing tok" } */ +a /* { dg-error "valid preprocessing tok" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste5.c b/gcc/testsuite/gcc.dg/cpp/paste5.c index 2a763f58e19..fd0406674ff 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste5.c +++ b/gcc/testsuite/gcc.dg/cpp/paste5.c @@ -18,7 +18,7 @@ extern void B(int); void foo(void) { - E(glue(F,*)) dummy; /* { dg-warning "valid preprocessing token" } */ + E(glue(F,*)) dummy; /* { dg-error "valid preprocessing token" } */ E(glue(F,G)) ; } diff --git a/gcc/testsuite/gcc.dg/cpp/paste6.c b/gcc/testsuite/gcc.dg/cpp/paste6.c index 6b6733c4e9d..ac9ae3901b3 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste6.c +++ b/gcc/testsuite/gcc.dg/cpp/paste6.c @@ -9,4 +9,4 @@ extern int foo(int x); #define bar(x) foo(x) #define baz(x) bar(##x) -int quux(int y) { return baz(y); } /* { dg-warning "valid preprocessing" } */ +int quux(int y) { return baz(y); } /* { dg-error "valid preprocessing" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste8.c b/gcc/testsuite/gcc.dg/cpp/paste8.c index dd098947919..ab017797868 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste8.c +++ b/gcc/testsuite/gcc.dg/cpp/paste8.c @@ -7,9 +7,9 @@ int foo(int, ...); a(1) a(1, 2, 3) #define b(x, y, z...) foo(x, ##y) -b(1, 2, 3) /* { dg-warning "valid preprocessing token" } */ +b(1, 2, 3) /* { dg-error "valid preprocessing token" } */ #define c(x, y, z...) foo(x, ##z) c(1, 2) c(1, 2, 3) #define d(x) fo(##x) -d(1) /* { dg-warning "valid preprocessing token" } */ +d(1) /* { dg-error "valid preprocessing token" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/skipping2.c b/gcc/testsuite/gcc.dg/cpp/skipping2.c index 3b0d0f32c8e..14dafc01e85 100644 --- a/gcc/testsuite/gcc.dg/cpp/skipping2.c +++ b/gcc/testsuite/gcc.dg/cpp/skipping2.c @@ -10,5 +10,5 @@ #if foo #else foo /* { dg-bogus "extra tokens" "extra tokens in skipped block" } */ #endif foo /* { dg-bogus "extra tokens" "extra tokens in skipped block" } */ -#endif bar /* { dg-warning "extra tokens" "tokens after #endif" } */ +#endif bar /* { dg-error "extra tokens" "tokens after #endif" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/comment.c b/gcc/testsuite/gcc.dg/cpp/trad/comment.c index ce9d7f18e1c..971a78a6d10 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/comment.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/comment.c @@ -2,4 +2,4 @@ /* { dg-do preprocess } */ -/* { dg-warning "unterminated comment" } +/* { dg-error "unterminated comment" } diff --git a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c index 767ed77ffb8..b471772f648 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c @@ -2,7 +2,7 @@ recognized. */ /* { dg-do preprocess } */ -/* { dg-error "missing terminating" "bad charconst" { target *-*-* } 7 } */ +/* { dg-warning "missing terminating" "bad charconst" { target *-*-* } 7 } */ /* { dg-error "not valid" "bad charconst" { target *-*-* } 7 } */ #if 'x #endif |