From c13e978820b82d7066ab29dc6b3c9a6d4848a91f Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 3 Apr 2019 13:17:04 +0000 Subject: [PATCH] [testsuite] PR71598: Fix testcases 2019-04-13 Christophe Lyon PR c/71598 * gcc.dg/torture/pr71598-1.c: Skip if short_enums target. * gcc.dg/torture/pr71598-2.c: Skip if not short_enums target. From-SVN: r270126 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/torture/pr71598-1.c | 1 + gcc/testsuite/gcc.dg/torture/pr71598-2.c | 1 + 3 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 94729eed46c..2473b2557ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-04-13 Christophe Lyon + + PR c/71598 + * gcc.dg/torture/pr71598-1.c: Skip if short_enums target. + * gcc.dg/torture/pr71598-2.c: Skip if not short_enums target. + 2019-04-03 Richard Biener PR tree-optimization/84101 diff --git a/gcc/testsuite/gcc.dg/torture/pr71598-1.c b/gcc/testsuite/gcc.dg/torture/pr71598-1.c index 7dfcb3d80d6..39022537eeb 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71598-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr71598-1.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-skip-if "" { short_enums } } */ /* { dg-additional-options "-fno-short-enums" } */ enum e1 { c1 }; diff --git a/gcc/testsuite/gcc.dg/torture/pr71598-2.c b/gcc/testsuite/gcc.dg/torture/pr71598-2.c index f140287d0a5..a40d6f07af2 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71598-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr71598-2.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-skip-if "" { ! short_enums } } */ /* { dg-additional-options "-fshort-enums" } */ enum e1 { c1 = -__INT_MAX__ }; -- 2.30.2