diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-05 00:47:25 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-05 00:47:25 +0000 |
commit | bd08d9505527b60b9add8e1538869d04c0c2d277 (patch) | |
tree | 28323018e09ca398cf4003532a9bc795bd96c316 /gcc/testsuite/gcc.dg/compare1.c | |
parent | 7eeb674fc47f4f716e18ab9d8534aac2f809ced7 (diff) | |
download | gcc-bd08d9505527b60b9add8e1538869d04c0c2d277.tar.gz |
* gcc.dg/compare1.c: Add -fno-short-enums. Don't skip on any
target.
* gcc.dg/compare9.c: Use -fshort-enums instead of
-fshort-enums. Change the last test to dg-bogus.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101610 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compare1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compare1.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/compare1.c b/gcc/testsuite/gcc.dg/compare1.c index 06049270c07..17ba3ee2098 100644 --- a/gcc/testsuite/gcc.dg/compare1.c +++ b/gcc/testsuite/gcc.dg/compare1.c @@ -1,11 +1,10 @@ /* Test for a bogus warning on comparison between signed and unsigned. - This was inspired by code in gcc. */ + This was inspired by code in gcc. This testcase is identical to + compare9.c except that we use -fno-short-enums here and expect a + warning from case 4. */ /* { dg-do compile } */ -/* { dg-options "-Wsign-compare" } */ -/* This test would fail on targets with short enums being default. See - compare9.c. */ -/* { dg-skip-if "" { arm*-*-eabi* arm*-*-symbianelf* } { "*" } { "" } } */ +/* { dg-options "-fno-short-enums -Wsign-compare" } */ int tf = 1; |