summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorbelagod <belagod@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-30 13:56:51 +0000
committerbelagod <belagod@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-30 13:56:51 +0000
commitb82f28f14f1005f4f728aa398a2a4750f9cda5f9 (patch)
treea3aa21c04207ab30e0bbdc3761574cbf309dc3f4 /gcc
parent774d2fbb727e130090d3946dc8b51ffd60403704 (diff)
downloadppe42-gcc-b82f28f14f1005f4f728aa398a2a4750f9cda5f9.tar.gz
ppe42-gcc-b82f28f14f1005f4f728aa398a2a4750f9cda5f9.zip
Fix failure in gcc.dg/pr52283.c by adding the missing
dg-warning and dg-options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186985 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/pr52283.c3
2 files changed, 6 insertions, 1 deletions
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 <Greta.Yorsh@arm.com>
+
+ * gcc.dg/pr52283.c: Add missing dg-warning and dg-options.
+
2012-04-30 Dodji Seketeli <dodji@redhat.com>
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" } */
;
}
}
OpenPOWER on IntegriCloud