This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING][Patch, Testsuite] fix failure in test gcc.dg/pr52283.c
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Greta Yorsh <Greta dot Yorsh at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, mikestump at comcast dot net, christian dot bruel at st 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 13:52:20 +0200
- Subject: Re: [PING][Patch, Testsuite] fix failure in test gcc.dg/pr52283.c
- References: <4f97e273.9241d80a.5083.ffffb394SMTPIN_ADDED@mx.google.com>
On Wed, Apr 25, 2012 at 1:40 PM, Greta Yorsh <Greta.Yorsh@arm.com> wrote:
> 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?
Didn't I approve this already?
Richard.
> 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" } */
> ? ? ? ;
> ? ? }
> ?}
>
>
>