Sign in
llvm
/
llvm-test-suite
/
8e6f3ef1b8f30cca66fd1a4e35d16bdfd0c622ba
/
.
/
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
();
}