Fix typo
[official-gcc.git] / gcc / testsuite / gcc.dg / 940409-1.c
blobe5049d9030ef201de50acf7ca0f1d1ef7205c221
1 /* GCC should allow struct S to be in a register, but it doesn't. This is
2 an obscure corner case, hasn't worked since 1994, and we don't expect it
3 to work anytime soon, hence XFAIL. */
4 /* { dg-do compile } */
6 struct S { volatile int field; };
7 int f (register struct S arg); /* { dg-bogus "volatile field" "with arg" { xfail *-*-* } } */
8 int g (register struct S); /* { dg-bogus "volatile field" "no arg" { xfail *-*-* } } */