commit | e263663470616f67cc0f18be596b86516beb80b0 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Sun Jun 01 15:31:44 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Sun Jun 01 15:31:44 2008 +0000 |
tree | c41843385f28a7ce3e47bdc65d3fd2225729dbe2 | |
parent | 070fee4c77f7cc04f6e5da4d5ef1679835bb7d38 [diff] [blame] |
Make sure _Bool globals have the correct type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51838 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/bool-init.c b/test/CodeGen/bool-init.c new file mode 100644 index 0000000..2e5d56a --- /dev/null +++ b/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;