testsuite: Change 3 tests from c++14 to c++11
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020320-1.c
blob05f72c65482c71183c196d229c962a5d04b5f9ea
1 /* PR c/5354 */
2 /* Verify that GCC preserves relevant stack slots. */
4 extern void abort(void);
5 extern void exit(int);
7 struct large { int x, y[9]; };
9 int main()
11 int fixed;
13 fixed = ({ int temp1 = 2; temp1; }) - ({ int temp2 = 1; temp2; });
14 if (fixed != 1)
15 abort();
17 fixed = ({ struct large temp3; temp3.x = 2; temp3; }).x
18 - ({ struct large temp4; temp4.x = 1; temp4; }).x;
19 if (fixed != 1)
20 abort();
22 exit(0);