mirror of
https://github.com/deadw00d/AROS.git
synced 2025-11-19 16:21:21 +00:00
25 lines
436 B
C
25 lines
436 B
C
/*
|
|
Copyright (C) 2025, The AROS Development Team. All rights reserved.
|
|
*/
|
|
|
|
#include <exec/types.h>
|
|
#include <proto/dos.h>
|
|
|
|
void crashfunc()
|
|
{
|
|
volatile double x = 1.0;
|
|
volatile double y = 0.0;
|
|
PutStr("Before crash\n");
|
|
volatile double z = x / y;
|
|
PutStr("After crash\n");
|
|
(void)z;
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
PutStr("main() enter\n");
|
|
crashfunc();
|
|
PutStr("main() exit\n");
|
|
return 0;
|
|
}
|