Sign in
qemu
/
qemu
/
5281a1975c4fa4be87e76b2f77b14eb3e9432a0e
/
.
/
tests
/
tcg
/
multiarch
/
segfault.c
blob: e6c8ff31ca3313867dc2e8f503d5a4ea43e4fac1 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<string.h>
/* Cause a segfault for testing purposes. */
int
main
(
int
argc
,
char
*
argv
[])
{
int
*
ptr
=
(
void
*)
0xdeadbeef
;
if
(
argc
==
2
&&
strcmp
(
argv
[
1
],
"-s"
)
==
0
)
{
/* Cause segfault. */
printf
(
"%d\n"
,
*
ptr
);
}
}