From d3a751c556684f82af86dbedfca0997908961715 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 21 Dec 2011 22:24:46 +0200 Subject: [PATCH] sparse, llvm: Add test case for type As it turns out, our validation test harness doesn't catch related breakage so add a minimal test case that does. Cc: Christopher Li Cc: Jeff Garzik Cc: Linus Torvalds Signed-off-by: Pekka Enberg --- validation/backend/bool-test.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 validation/backend/bool-test.c 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 + */ -- 2.11.4.GIT