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