summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-names.c
blob: f5e44e65f6cedec8d911c7801cef13b270a50911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* The name specified by an asm("...") suffix on a declaration is not
   to have an underscore prefixed, even if normal symbols are.
   Problem reported by Krister Walfridsson <cato@df.lth.se>.  */

/* { dg-do compile } */
/* { dg-options "-fleading-underscore" } */
/* { dg-final { scan-assembler-not "____frob14" } } */

extern void frobnicate (void) asm ("___frob14");  /* three underscores */

int
main (void)
{
  frobnicate ();
  return 0;
}