From 10c2417570d51b330f54842c2f9f4c92d1f560ca Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 1 Jun 2008 15:31:44 +0000 Subject: Make sure _Bool globals have the correct type. llvm-svn: 51838 --- clang/test/CodeGen/bool-init.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 clang/test/CodeGen/bool-init.c (limited to 'clang/test/CodeGen/bool-init.c') diff --git a/clang/test/CodeGen/bool-init.c b/clang/test/CodeGen/bool-init.c new file mode 100644 index 00000000000..2e5d56a0a1c --- /dev/null +++ b/clang/test/CodeGen/bool-init.c @@ -0,0 +1,4 @@ +// RUN: clang -emit-llvm < %s | grep i1 | count 1 + +// Check that the type of this global isn't i1 +_Bool test = &test; -- cgit v1.2.3