OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-10-31 Eric Christopher <echristo@apple.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-3.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 = 0x80000000;
10
uint32_t b;
11
12
b = __builtin_bswap32 (a);
13
a = __builtin_bswap32 (b);
14
15
if (b != 0x80 || a != 0x80000000)
16
abort ();
17
18
return 0;
19
}