mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 03:05:02 +08:00
Minor tweaks to testing harness
From-SVN: r25508
This commit is contained in:
parent
6efbe8353c
commit
456bf3e3b3
@ -1,12 +1,12 @@
|
||||
/* { dg-do preprocess } */
|
||||
/* { dg-options "-pedantic-errors" } */
|
||||
|
||||
#if 0xa == 10
|
||||
#error yes /* { dg-error "#error yes" "normal conversion" } */
|
||||
#if 0xa != 10
|
||||
#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
|
||||
#endif
|
||||
|
||||
#if 077 == 63
|
||||
#error yes /* { dg-error "#error yes" "normal conversion" } */
|
||||
#if 077 != 63
|
||||
#error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
|
||||
#endif
|
||||
|
||||
#if 12wrt /* { dg-error "nvalid number" "invalid number" } */
|
||||
|
@ -1,12 +1,12 @@
|
||||
/* { dg-do preprocess } */
|
||||
/* { dg-options -pedantic-errors } */
|
||||
|
||||
#if 'a' == 'a' && '\001' == 1 && '\x12' == 0x12
|
||||
#error yes /* { dg-error "#error yes" "basic charconst recognition" } */
|
||||
#if 'a' != 'a' || '\001' != 1 || '\x12' != 0x12
|
||||
#error a,1,0x12 /* { dg-bogus "#error" "basic charconst recognition" } */
|
||||
#endif
|
||||
|
||||
#if 'a' == L'a' && L'\xfeed' == 0xfeed
|
||||
#error yes /* { dg-error "#error yes" "wide charconst recognition" } */
|
||||
#if 'a' != L'a' || L'\xfeed' != 0xfeed
|
||||
#error L'a',0xfeed /* { dg-bogus "#error" "wide charconst recognition" } */
|
||||
#endif
|
||||
|
||||
#if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */
|
||||
|
Loading…
Reference in New Issue
Block a user