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]

[committed] add testcases for last charset patch


This adds the testcases for Alex's patch. Committed as obvious.

-eric

-- 
Eric Christopher <echristo@redhat.com>

2004-06-15  Eric Christopher  <echristo@redhat.com>

	* g++.dg/charset/asm5.c: New.
	* gcc.dg/charset/asm6.c: New.

Index: gcc/testsuite/g++.dg/charset/asm5.c
===================================================================
RCS file: gcc/testsuite/g++.dg/charset/asm5.c
diff -N gcc/testsuite/g++.dg/charset/asm5.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/g++.dg/charset/asm5.c	15 Jun 2004 22:54:22 -0000
@@ -0,0 +1,13 @@
+/* Test for string translation.  */
+/* { dg-do compile }
+   { dg-require-iconv "IBM-1047" } 
+   { dg-final { scan-assembler "foo" } } */
+int main()
+{
+  unsigned long int *ptr;
+  ptr = ((unsigned long int *)
+         ( { void *stack_ptr;
+           __asm__ __volatile__ ( "foo %0" : "=r" (stack_ptr) );
+           (stack_ptr); } ) );
+  return 0;
+}
Index: gcc/testsuite/gcc.dg/charset/asm6.c
===================================================================
RCS file: gcc/testsuite/gcc.dg/charset/asm6.c
diff -N gcc/testsuite/gcc.dg/charset/asm6.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/gcc.dg/charset/asm6.c	15 Jun 2004 22:54:22 -0000
@@ -0,0 +1,13 @@
+/* Test for string translation.  */
+/* { dg-do compile }
+   { dg-require-iconv "IBM-1047" } 
+   { dg-final { scan-assembler "foo" } } */
+int main()
+{
+  unsigned long int *ptr;
+  ptr = ((unsigned long int *)
+         ( { void *stack_ptr;
+           __asm__ __volatile__ ( "foo %0" : "=r" (stack_ptr) );
+           (stack_ptr); } ) );
+  return 0;
+}



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