Patchwork [Committed] Add new testcase

login
register
mail settings
Submitter Andrew Pinski
Date July 16, 2012, 7:17 a.m.
Message ID <CA+=Sn1=Xx3040x5c4TKLUGhqW1bQP5RrEYJ-G+v4-GiBHhjPCw@mail.gmail.com>
Download mbox | patch
Permalink /patch/171140/
State New
Headers show

Comments

Andrew Pinski - July 16, 2012, 7:17 a.m.
Hi,
  When I was debugging a modified GCC 4.3 I ran into an ICE which was
fixed by http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00217.html .
The patch did not mention it was fixing an ICE, so I decided to add a testcase.

Committed the testcase as obvious.

Thanks,
Andrew Pinski

* gcc.dg/torture/builtins-1.c: New testcase.

Patch

Index: gcc.dg/torture/builtins-1.c
===================================================================
--- gcc.dg/torture/builtins-1.c	(revision 0)
+++ gcc.dg/torture/builtins-1.c	(revision 0)
@@ -0,0 +1,9 @@ 
+/* { dg-do compile } */
+/* { dg-options "-fdump-rtl-expand-all" */
+/* { dg-final { cleanup-rtl-dump "expand" } } */
+int isdigit(int c)
+{
+        return c >= 0;
+}
+
+
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 189509)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2012-07-16  Andrew Pinski  <apinski@cavium.com>
+
+	* gcc.dg/torture/builtins-1.c: New testcase.
+
 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
 
 	* gcc.target/cris/sync-2i.c, gcc.target/cris/sync-2s.c,