OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f601056db22ea53b6b9d1249f9b1b28478a3fcf4
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-2.c
1
/* { dg-do run } */
2
/* { dg-options "" } */
3
#include <stdint.h>
4
5
extern void abort (void);
6
7
int main (void)
8
{
9
uint32_t a = 4;
10
uint32_t b;
11
12
b = __builtin_bswap32 (a);
13
a = __builtin_bswap32 (b);
14
15
if (b == 4 || a != 4)
16
abort ();
17
18
return 0;
19
}