Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr79131-1.c
blob3bd9e0fd935366dd60646c7d44c21f209e957200
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mbig-endian" } */
4 long long a;
5 enum { NILFS_SEGMENT_USAGE_ACTIVE, NILFS_SEGMENT_USAGE_DIRTY } b;
6 void nilfs_sufile_mod_counter(long long p1) {
7 long c = p1;
8 unsigned d = __builtin_bswap64(a);
9 a = __builtin_bswap64(d + c);
11 void nilfs_sufile_do_free() {
12 int e, f;
13 e = __builtin_bswap32(b) & 1 << NILFS_SEGMENT_USAGE_DIRTY;
14 f = e;
15 nilfs_sufile_mod_counter(f ? -1 : 0);