* bus/activation.c: win32 compile fix.
[platform/upstream/dbus.git] / test / test-segfault.c
1 /* This is simply a process that segfaults */
2 #include <config.h>
3 #include <stdlib.h>
4 #include <signal.h>
5
6 int
7 main (int argc, char **argv)
8 {
9   char *p;  
10
11 #if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
12   struct rlimit r = { 0, };
13   
14   getrlimit (RLIMIT_CORE, &r);
15   r.rlim_cur = 0;
16   setrlimit (RLIMIT_CORE, &r);
17   
18   raise (SIGSEGV);
19 #endif
20   p = NULL;
21   *p = 'a';
22   
23   return 0;
24 }