Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-bswap-5.c
blobb29931e4e10d35048f76ea14bb2603227fe1ecc5
1 /* { dg-do run } */
2 /* { dg-options "-O" } */
3 int
4 main (void)
6 /* Test constant folding. */
7 extern void link_error (void);
9 if (__builtin_bswap16(0xaabb) != 0xbbaa)
10 link_error ();
12 if (__builtin_bswap32(0xaabbccdd) != 0xddccbbaa)
13 link_error ();
15 if (__builtin_bswap64(0x1122334455667788ULL) != 0x8877665544332211ULL)
16 link_error ();
18 return 0;