fehler143: eccp makes the __assert_fail() call in an assert() macro disappear.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 2 Sep 2008 09:47:13 +0000 (09:47 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 2 Sep 2008 09:47:13 +0000 (09:47 +0000)
[r21639]

ir/be/test/fehler143.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler143.c b/ir/be/test/fehler143.c
new file mode 100644 (file)
index 0000000..2812fde
--- /dev/null
@@ -0,0 +1,21 @@
+#include <assert.h>
+#include <signal.h>
+#include <stdlib.h>
+
+void f(int x)
+{
+       assert(x < 0);
+}
+
+void handler(int sig)
+{
+       (void)sig;
+       exit(0);
+}
+
+int main(void)
+{
+       signal(SIGABRT, handler);
+       f(1);
+       return 1;
+}