Add more tests.
[pintos-anon] / grading / userprog / child-bad.c
diff --git a/grading/userprog/child-bad.c b/grading/userprog/child-bad.c
new file mode 100644 (file)
index 0000000..a256e63
--- /dev/null
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void) 
+{
+  printf ("(child-bad) begin\n"); 
+  asm volatile ("mov $0xc0101234, %esp; int $0x30");
+  printf ("(child-bad) end\n"); 
+  return 0;
+}