Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gdc.dg / attr_register2.d
blob22c518f90335749bbb12c5919082cf9fd093912d
1 // { dg-do compile { target x86_64-*-* } }
3 import gcc.attributes;
5 @register("ebx") static int var1 = void; // { dg-error "explicit register variable .var1. declared thread local" }
7 @register("ebx") extern int var2; // { dg-error "explicit register variable .var2. declared .extern." }
9 @register("ebp") __gshared int var3 = 0x2a; // { dg-error "global register variable has initial value" }
11 @register("ebp") __gshared int[256] var4 = void; // { dg-error "data type of .var4. isn.t suitable for a register" }