This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] new dejagnu test cases for ICE on gcc 3.4


Hi,
	Please find below dejagnu test cases.

	1. nonstatfunc-c1.C was giving ICE in gcc 3.4 for non static member function.
	2. asmice1.c was giving ICE in gcc 3.4.

 ==========================================================================
testsuite/Changelog

2004-07-13  Nitin Yewale <nitiny@kpitcummins.com>

        * g++.dg/init/nonstatfunc-c1.C : New test
	  * gcc.dg/asmice1.c : New test
==========================================================================
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ gcc-3.5-20040627/gcc/testsuite/g++.dg/init/nonstatfunc-c1.C	2004-06-30 16:21:19.000000000 +0530
@@ -0,0 +1,8 @@
+/* { dg-do compile} */
+struct A {};
+
+typedef void (A::*ftype)();
+
+void foo() { A().*ftype(); } /* dg-error "."*/
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ gcc-3.5-20040627/gcc/testsuite/gcc.dg/asmice1.c	2004-06-30 18:16:37.000000000 +0530
@@ -0,0 +1,10 @@
+/* {dg-do compile}*/
+/* { dg-options "-O2" } */
+extern __inline int
+foo (const char *__s, char __reject)
+{
+	  return __builtin_strchr (__s, __reject) != ((void *)0);
+}
+
+extern char *bar (__const char *__s, int __c);
+extern __typeof (bar) strchr __asm__ ("bar");
==========================================================================
Regards,
Nitin Yewale,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]