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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr36227.c
blob
462b2c4f0fb1cd8fd73b7beb13fb8b77bd4f19fb
1
/* { dg-do run { target { stdint_types } } } */
2
3
#include <stdint.h>
4
extern
void
abort
(
void
);
5
int
main
()
6
{
7
int
i
=
1
;
8
int
*
p
= &
i
;
9
uintptr_t
iptr
;
10
11
iptr
= (
uintptr_t
)
p
- (
uintptr_t
)&
iptr
;
12
p
= (
int
*)((
uintptr_t
)&
iptr
+
iptr
);
13
if
(*
p
!=
1
)
14
abort
();
15
return
0
;
16
}
17