1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-11-20 00:29:58 +00:00
Files
AROS-v0/developer/debug/test/exec/crashtest_pagefault.c
2025-11-09 17:01:04 +01:00

24 lines
387 B
C

/*
Copyright (C) 2013-2025, The AROS Development Team. All rights reserved.
*/
#include <exec/types.h>
#include <proto/dos.h>
void crashfunc()
{
volatile LONG * ptr = NULL;
PutStr("Before crash\n");
*ptr = 20;
PutStr("After crash\n");
}
int main(int argc, char **argv)
{
PutStr("main() enter\n");
crashfunc();
PutStr("main() exit\n");
return 0;
}