-
Notifications
You must be signed in to change notification settings - Fork 0
/
debugtests.c
27 lines (24 loc) · 876 Bytes
/
debugtests.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdlib.h>
#include <stdio.h>
#include "util.h"
const char debugtest[] = "./debugtest.exe"
, rmdebugtest[] = "rm debugtest.exe"
, *debugtests[] =
{ "clang -DDebugInfo debugtest.c -o debugtest.exe"
, "clang -DDebugWarn debugtest.c -o debugtest.exe"
, "clang -DDebugError debugtest.c -o debugtest.exe"
, "clang debugtest.c -o debugtest.exe"
, "clang -DDebugRun -DDebugInfo debugtest.c -o debugtest.exe"
, "clang -DDebugRun -DDebugWarn debugtest.c -o debugtest.exe"
, "clang -DDebugRun -DDebugError debugtest.c -o debugtest.exe"
, "clang -DDebugRun debugtest.c -o debugtest.exe" };
int main(void) {
for (int i = 0; i < ArraySize(debugtests); ++i) {
puts(debugtests[i]);
system(debugtests[i]);
puts(debugtest);
system(debugtest);
}
system(rmdebugtest);
return 0;
}