diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr14289-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr14289-1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr14289-1.c b/gcc/testsuite/gcc.target/i386/pr14289-1.c new file mode 100644 index 00000000000..71317d542c7 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr14289-1.c @@ -0,0 +1,12 @@ +/* PR middle-end/14289 */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O0" } */ + +register int a[2] asm("ebx"); + +void Nase(void) +{ + int i=6; + a[i]=5; /* { dg-error "address of global" } */ +} + |