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

register int a[2] asm("ebx");

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