mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
25 lines
343 B
C
25 lines
343 B
C
|
/* { dg-do run } */
|
||
|
/* { dg-options "-O2" } */
|
||
|
|
||
|
extern void abort (void);
|
||
|
|
||
|
int A, B;
|
||
|
|
||
|
void foo()
|
||
|
{
|
||
|
long x = 3;
|
||
|
(void)({
|
||
|
A = B + x + ((1) - 1);
|
||
|
return; /* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
|
||
|
});
|
||
|
}
|
||
|
|
||
|
main()
|
||
|
{
|
||
|
B = 5;
|
||
|
foo();
|
||
|
if (A != 8)
|
||
|
abort ();
|
||
|
return 0;
|
||
|
}
|