aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr92469.c
blob: 8cff36b5c378959c667e543b486c49d48f959502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR target/92469 */
/* { dg-do compile } */
/* { dg-options "-O0" } */

void
foo (void)
{ 
  register int x asm ("frame");	/* { dg-error "register specified for 'x' is an internal GCC implementation detail" } */
  int y = x;
}

void
bar (void)
{ 
  register int x asm ("19");	/* { dg-error "register specified for 'x' is an internal GCC implementation detail" } */
  int y = x;
}

void
baz (void)
{ 
  register int x asm ("argp");	/* { dg-error "register specified for 'x' is an internal GCC implementation detail" } */
  int y = x;
}