shithub: scc

Download patch

ref: dafc7b4128023928611008473fd07e0ab7a0bbd8
parent: c532c555d5558685f629ea918ae612d5413543cd
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 1 11:58:54 EDT 2018

[lib/c] whitespace change

--- a/rootdir/include/scc/assert.h
+++ b/rootdir/include/scc/assert.h
@@ -1,5 +1,5 @@
 
-void __assert(char *exp, char *file, long line);
+extern void __assert(char *exp, char *file, long line);
 
 #undef assert
 #ifndef NDEBUG
@@ -7,4 +7,3 @@
 #else
 # define assert(exp) ((void)0)
 #endif
-
--- /dev/null
+++ b/tests/libc/execute/0004-abort.c
@@ -1,0 +1,15 @@
+#include <assert.h>
+#include <stdio.h>
+#include <signal.h>
+#include <stdlib.h>
+
+int
+main(void)
+{
+	printf("aborting\n");
+	assert(signal(SIGABRT, SIG_IGN) != SIG_ERR);
+	abort();
+	printf("borning\n");
+
+	return 0;
+}
--- /dev/null
+++ b/tests/libc/execute/0004-abort.txt
@@ -1,0 +1,1 @@
+aborting