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
PR other/25028
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-2.c
blob
f601056db22ea53b6b9d1249f9b1b28478a3fcf4
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
}