Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/builtin-bswap-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do run } */ | |
2 /* { dg-options "-O" } */ | |
3 int | |
4 main (void) | |
5 { | |
6 /* Test constant folding. */ | |
7 extern void link_error (void); | |
8 | |
9 if (__builtin_bswap16(0xaabb) != 0xbbaa) | |
10 link_error (); | |
11 | |
12 if (__builtin_bswap32(0xaabbccdd) != 0xddccbbaa) | |
13 link_error (); | |
14 | |
15 if (__builtin_bswap64(0x1122334455667788ULL) != 0x8877665544332211ULL) | |
16 link_error (); | |
17 | |
18 return 0; | |
19 } |