Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-bswap-2.c
blob745fed9d164e0782ed11e72c9e3ea98cefdce6fa
1 /* { dg-do run } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-options "" } */
4 #include <stdint.h>
6 extern void abort (void);
8 int main (void)
10 uint32_t a = 4;
11 uint32_t b;
13 b = __builtin_bswap32 (a);
14 a = __builtin_bswap32 (b);
16 if (b == 4 || a != 4)
17 abort ();
19 return 0;