From 0d829a5eb43b97a41575b66ad8f9de19bd98d807 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 25 May 2017 17:12:39 +1000 Subject: [PATCH] Add a basic test program. --- .gitignore | 3 +++ test/c/gif/basic.c | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 test/c/gif/basic.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5a1f3db3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +*.exe +a.out diff --git a/test/c/gif/basic.c b/test/c/gif/basic.c new file mode 100644 index 00000000..92888c8b --- /dev/null +++ b/test/c/gif/basic.c @@ -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 + +#include "../../../gen/c/gif.c" + +int main(int argc, char** argv) { + printf("PASS\n"); + return 0; +}