This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING][Patch, Testsuite] fix failure in test gcc.dg/pr52283.c
- From: "Greta Yorsh" <Greta dot Yorsh at arm dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <mikestump at comcast dot net>, <christian dot bruel at st dot com>, <richard dot guenther at gmail dot com>, <ro at CeBiTec dot Uni-Bielefeld dot DE>, <lopezibanez at gmail dot com>, <hjl dot tools at gmail dot com>
- Date: Wed, 25 Apr 2012 12:40:16 +0100
- Subject: [PING][Patch, Testsuite] fix failure in test gcc.dg/pr52283.c
PING! Here is the original post:
http://gcc.gnu.org/ml/gcc-patches/2012-04/msg01235.html
This patch fixes the failure in gcc.dg/pr52283.c by adding the missing
dg-warning and dg-options.
OK for trunk?
Thanks,
Greta
gcc/testsuite/ChangeLog
2012-04-20 Greta Yorsh <Greta.Yorsh@arm.com>
* gcc.dg/pr52283.c: Add missing dg-warning and dg-options.
diff --git a/gcc/testsuite/gcc.dg/pr52283.c b/gcc/testsuite/gcc.dg/pr52283.c
index 33785a5..070e71a 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" } */
;
}
}