aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr14289-2.c
blob: 7530b468caca87059130872b6208cbdefd3a6cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR middle-end/14289 */
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-O0" } */

static register int a[2] asm("ebx");  /* { dg-error "multiple storage" } */

void Nase(void)
{
  int i=6;
  a[i]=5;  /* { dg-error "address of global" } */
}