Add a basic test program.

This commit is contained in:
Nigel Tao committed 2017-05-25 17:12:39 +10:00
1 parent 3663708405
commit 0d829a5eb4
2 files changed
+28

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
*~
*.exe
a.out
+25
View File
@@ -0,0 +1,25 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
/*
To manually run this test:
for cc in clang gcc; do
printf "%-8s" "$cc:"
$cc -std=c99 -Wall -Werror basic.c && ./a.out
rm -f a.out
done
It should print:
clang: PASS
gcc: PASS
*/
#include <stdio.h>
#include "../../../gen/c/gif.c"
int main(int argc, char** argv) {
printf("PASS\n");
return 0;
}