public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] Add new testcase
@ 2012-07-16  7:17 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2012-07-16  7:17 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

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.

[-- Attachment #2: addtestcase.diff.txt --]
[-- Type: text/plain, Size: 751 bytes --]

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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-16  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16  7:17 [Committed] Add new testcase Andrew Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).