PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr79131-2.c
bloba670f0fec2b2c29d216efa43de35b5dac660719c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mbig-endian" } */
4 struct nilfs_segment_usage {
5 int su_flags;
6 } a;
7 enum { NILFS_SEGMENT_USAGE_ACTIVE, NILFS_SEGMENT_USAGE_DIRTY } fn1();
8 int b;
9 void fn2(int *, long long);
10 void fn3() {
11 int c, d;
12 struct nilfs_segment_usage e = a;
13 fn1();
14 c = e.su_flags & 1 << NILFS_SEGMENT_USAGE_DIRTY;
15 d = c;
16 fn2(&b, d ? -1 : 0);