diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-11-05 19:45:05 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-11-05 19:49:03 +0100 |
commit | a111cfba4816765b55f4d5c82bc2b034047db92c (patch) | |
tree | a50578b31c466e725eb02a2f6d8c8967b80aad5c | |
parent | 3c28d6a3a018e9acb7af1422d6263661f69d5f94 (diff) | |
download | gcc-a111cfba4816765b55f4d5c82bc2b034047db92c.zip gcc-a111cfba4816765b55f4d5c82bc2b034047db92c.tar.gz gcc-a111cfba4816765b55f4d5c82bc2b034047db92c.tar.bz2 |
d: Adjust test to pass when compiling with -m32
Noticed when running on x86_64-linux-gnu with `-m32', this test
triggered other errors. Adjusted the test to use a different register
that is common between x86 and x86_64.
gcc/testsuite/ChangeLog:
* gdc.dg/attr_register2.d: Adjust test.
-rw-r--r-- | gcc/testsuite/gdc.dg/attr_register2.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gdc.dg/attr_register2.d b/gcc/testsuite/gdc.dg/attr_register2.d index 9061a64..22c518f 100644 --- a/gcc/testsuite/gdc.dg/attr_register2.d +++ b/gcc/testsuite/gdc.dg/attr_register2.d @@ -6,6 +6,6 @@ import gcc.attributes; @register("ebx") extern int var2; // { dg-error "explicit register variable .var2. declared .extern." } -@register("r12") __gshared int var3 = 0x2a; // { dg-error "global register variable has initial value" } +@register("ebp") __gshared int var3 = 0x2a; // { dg-error "global register variable has initial value" } -@register("r12") __gshared int[256] var4 = void; // { dg-error "data type of .var4. isn.t suitable for a register" } +@register("ebp") __gshared int[256] var4 = void; // { dg-error "data type of .var4. isn.t suitable for a register" } |