diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/charset/asm1.c')
-rw-r--r-- | gcc/testsuite/g++.dg/charset/asm1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/charset/asm1.c b/gcc/testsuite/g++.dg/charset/asm1.c new file mode 100644 index 00000000000..9c0ff2866b0 --- /dev/null +++ b/gcc/testsuite/g++.dg/charset/asm1.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target *-*-* } } + { dg-require-iconv "IBM-1047" } + { dg-final { scan-assembler ".ascii bar" } } + { dg-final { scan-assembler ".ascii foo" } } + */ +extern int x, y; + +asm (".ascii bar"); + +int foo (void) +{ + __asm__ (".ascii foo"); + return 0; +} |