aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/mangle-1.c
blob: 6797bc2436f49c445e2eb805ef6b01dd568afc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#if __nvptx__
/* Doesn't like . in labels.  */
#define SEP "$"
#else
#define SEP "."
#endif

int foo(void)
{
  static int x asm ("x") = 3;
  return x++;
}

int X2 asm ("x" SEP "0") = 4;
int X3 asm ("_x" SEP "0") = 5;