asm5.c: New.
authorEric Christopher <echristo@redhat.com>
Tue, 15 Jun 2004 23:09:24 +0000 (23:09 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Tue, 15 Jun 2004 23:09:24 +0000 (23:09 +0000)
2004-06-15  Eric Christopher  <echristo@redhat.com>

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

From-SVN: r83215

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/charset/asm5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/charset/asm6.c [new file with mode: 0644]

index 2d74fb607519ec1fb81ec8c2dc840657566dc937..d5eaccf49a65de1bd9013184b8a75d72998f3647 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-15  Eric Christopher  <echristo@redhat.com>
+
+       * g++.dg/charset/asm5.c: New.
+       * gcc.dg/charset/asm6.c: New.
+
 2004-06-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        PR fortran/15962
@@ -39,7 +44,7 @@
 
        PR fortran/14928
        * gfortran.fortran-torture/compile/mloc.f90: New test.
-       
+
 2004-06-13  Paul Brook  <paul@codesourcery.com>
 
        * gfortran.fortran-torture/execute/random_2.f90: New test.
diff --git a/gcc/testsuite/g++.dg/charset/asm5.c b/gcc/testsuite/g++.dg/charset/asm5.c
new file mode 100644 (file)
index 0000000..9131622
--- /dev/null
@@ -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;
+}
diff --git a/gcc/testsuite/gcc.dg/charset/asm6.c b/gcc/testsuite/gcc.dg/charset/asm6.c
new file mode 100644 (file)
index 0000000..9131622
--- /dev/null
@@ -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;
+}