PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / charset / asm6.c
blobae2ec485d804bccb610caa6ee5763a318ca52f6d
1 /* Test for string translation. */
2 /* { dg-do compile }
3 { dg-require-iconv "IBM1047" }
4 { dg-final { scan-assembler "foo" } } */
5 int main()
7 unsigned long int *ptr;
8 ptr = ((unsigned long int *)
9 ( { void *stack_ptr;
10 __asm__ __volatile__ ( "foo %0" : "=r" (stack_ptr) );
11 (stack_ptr); } ) );
12 return 0;