summaryrefslogtreecommitdiff
path: root/Tests/TryCompile/exit_with_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TryCompile/exit_with_error.c')
-rw-r--r--Tests/TryCompile/exit_with_error.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/TryCompile/exit_with_error.c b/Tests/TryCompile/exit_with_error.c
new file mode 100644
index 000000000..f3c523d37
--- /dev/null
+++ b/Tests/TryCompile/exit_with_error.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf("hello world\n");
+ return -1;
+}