Sign in
llvm
/
llvm-test-suite
/
195afe069d3e2ba1a1bd352d6f44ddf318201371
/
.
/
SingleSource
/
Regression
/
C
/
gcc-c-torture
/
execute
/
alias-1.c
blob: d410149fc0116e6f7405bc69b24aef7b0ac61d8a [
file
] [
log
] [
blame
]
int
val
;
int
*
ptr
=
&
val
;
float
*
ptr2
=
&
val
;
__attribute__
((
optimize
(
"-fno-strict-aliasing"
)))
typepun
()
{
*
ptr2
=
0
;
}
main
()
{
*
ptr
=
1
;
typepun
();
if
(*
ptr
)
__builtin_abort
();
}