Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr122000.c

raw
1 /* PR target/122000 */
2
3 char c = 1;
4 __attribute__((aligned (sizeof (unsigned long long)))) unsigned long long ll;
5
6 int
7 main ()
8 {
9 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) && __SIZEOF_LONG_LONG__ == 8 && __CHAR_BIT__ == 8
10 unsigned long long x = __sync_add_and_fetch (&ll, c + 0xfedcba9876543210ULL);
11 if (x != 0xfedcba9876543211ULL)
12 __builtin_abort ();
13 #endif
14 }