mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
22 lines
363 B
C
22 lines
363 B
C
/* This testcase was miscompiled on IA-32, because fold-const
|
|
assumed associate_trees is always done on PLUS_EXPR. */
|
|
|
|
extern void abort (void);
|
|
extern void exit (int);
|
|
|
|
void check (unsigned int m)
|
|
{
|
|
if (m != (unsigned int) -1)
|
|
abort ();
|
|
}
|
|
|
|
unsigned int n = 1;
|
|
|
|
int main (void)
|
|
{
|
|
unsigned int m;
|
|
m = (1 | (2 - n)) | (-n);
|
|
check (m);
|
|
exit (0);
|
|
}
|