This just does a deref through 0 and passes if we catch the note. Change-Id: Ie8331e5a17f523997e9ed09a645a0c14c690c346 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
@@ -0,0 +1,24 @@
+#include <u.h>
+#include <libc.h>
+#define RET 0xc3
+
+void
+handler(void *v, char *s)
+{
+ print("PASS\n");
+ exits("PASS");
+}
+main(void)
+ void (*f)(void) = nil;
+ if (notify(handler)){
+ fprint(2, "%r\n");
+ exits("notify fails");
+ }
+ f();
+ print("FAIL");
+ exits("FAIL");
@@ -16,6 +16,7 @@
"mixedfloat.c",
"mmap.c",
"nanotime.c",
+ "notify.c",
"nx.c",
"privates.c",
"psx.c",