repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-3.c
blob
031817e780f083a4bfec87598a5a3ca1a8a28579
1
/* { dg-do run } */
2
/* { dg-require-effective-target stdint_types } */
3
/* { dg-options "" } */
4
#include <stdint.h>
5
6
extern
void
abort
(
void
);
7
8
int
main
(
void
)
9
{
10
uint32_t
a
=
0x80000000
;
11
uint32_t
b
;
12
13
b
=
__builtin_bswap32
(
a
);
14
a
=
__builtin_bswap32
(
b
);
15
16
if
(
b
!=
0x80
||
a
!=
0x80000000
)
17
abort
();
18
19
return
0
;
20
}