summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/charset/asm1.c
blob: dfd1401861339efdc7fbdf943d106ee7a48c4889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile }
   { dg-require-iconv "IBM1047" }
   { 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;
}