aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr14289-3.c
blob: 7cfbf78ce0508dc749ac430e7d3fced07e6ad024 (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" } */

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

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