From b944e97a922d85b404cba6c4a4f2fbcf8e7701b8 Mon Sep 17 00:00:00 2001 From: Greta Yorsh Date: Mon, 30 Apr 2012 14:56:51 +0100 Subject: [PATCH] Fix failure in gcc.dg/pr52283.c by adding the missing dg-warning and dg-options. From-SVN: r186985 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/pr52283.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f5cfe3710ab..7f895fdae33 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-04-30 Greta Yorsh + + * gcc.dg/pr52283.c: Add missing dg-warning and dg-options. + 2012-04-30 Dodji Seketeli Add -Wvarargs option diff --git a/gcc/testsuite/gcc.dg/pr52283.c b/gcc/testsuite/gcc.dg/pr52283.c index 33785a598e2..070e71aa590 100644 --- a/gcc/testsuite/gcc.dg/pr52283.c +++ b/gcc/testsuite/gcc.dg/pr52283.c @@ -1,6 +1,7 @@ /* Test for case labels not integer constant expressions but folding to integer constants (used in Linux kernel). */ /* { dg-do compile } */ +/* { dg-options "-pedantic" } */ extern unsigned int u; @@ -9,7 +10,7 @@ b (int c) { switch (c) { - case (int) (2 | ((4 < 8) ? 8 : u)): + case (int) (2 | ((4 < 8) ? 8 : u)): /* { dg-warning "case label is not an integer constant expression" } */ ; } } -- 2.30.2