This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] add testcases for last charset patch
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Jun 2004 16:07:17 -0700
- Subject: [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;
+}