aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2011-12-21 22:24:46 +0200
committerPekka Enberg <penberg@kernel.org>2011-12-21 22:24:46 +0200
commitd3a751c556684f82af86dbedfca0997908961715 (patch)
tree83f7c215c7067e8686c52db1c6a7bb6e715abb77
parente1b4d29a0b9c2f29044db482d5965b18937eac02 (diff)
downloadsparse-d3a751c556684f82af86dbedfca0997908961715.tar.gz
sparse, llvm: Add test case for <stdbool.h> type
As it turns out, our validation test harness doesn't catch <stdbool.h> related breakage so add a minimal test case that does. Cc: Christopher Li <sparse@chrisli.org> Cc: Jeff Garzik <jgarzik@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--validation/backend/bool-test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/backend/bool-test.c b/validation/backend/bool-test.c
new file mode 100644
index 00000000..a6f33a1a
--- /dev/null
+++ b/validation/backend/bool-test.c
@@ -0,0 +1,9 @@
+static _Bool return_false(void)
+{
+ return 0;
+}
+
+/*
+ * check-name: Boolean type code generation
+ * check-command: ./sparsec -c $file -o tmp.o
+ */