Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / pr36300-1.c
blobe737ab7ff0ced9f3a7012a12a56b431df278309d
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fwrapv" } */
4 extern void abort (void);
6 #define VALUE ((int)((long long)U1 * (long long)3) + 2)
8 int main(void)
10 long long Y, Y2;
11 #if(__SIZEOF_INT__ >= 4)
12 int U1;
13 #else
14 long U1;
15 #endif
16 int t;
17 U1 = -2147483647-1;
19 Y = ((long long)(VALUE * VALUE) * 3);
21 t = VALUE;
22 Y2 = ((long long)(t * t) * 3);
24 if (Y != Y2)
25 abort ();
26 return 0;