Commit b944e97a by Greta Yorsh Committed by Tejas Belagod

Fix failure in gcc.dg/pr52283.c by adding the missing

dg-warning and dg-options.

From-SVN: r186985
parent b8fb55d1
2012-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
* gcc.dg/pr52283.c: Add missing dg-warning and dg-options.
2012-04-30 Dodji Seketeli <dodji@redhat.com> 2012-04-30 Dodji Seketeli <dodji@redhat.com>
Add -Wvarargs option Add -Wvarargs option
......
/* Test for case labels not integer constant expressions but folding /* Test for case labels not integer constant expressions but folding
to integer constants (used in Linux kernel). */ to integer constants (used in Linux kernel). */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-pedantic" } */
extern unsigned int u; extern unsigned int u;
...@@ -9,7 +10,7 @@ b (int c) ...@@ -9,7 +10,7 @@ b (int c)
{ {
switch (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" } */
; ;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment