diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-01 15:31:44 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-01 15:31:44 +0000 |
commit | 10c2417570d51b330f54842c2f9f4c92d1f560ca (patch) | |
tree | 545f982879c5ab328be97df281b1ded75dd629f9 /clang/test/CodeGen/bool-init.c | |
parent | 149a57f7d44ca05c4d43776b91f9708374366a46 (diff) | |
download | bcm5719-llvm-10c2417570d51b330f54842c2f9f4c92d1f560ca.tar.gz bcm5719-llvm-10c2417570d51b330f54842c2f9f4c92d1f560ca.zip |
Make sure _Bool globals have the correct type.
llvm-svn: 51838
Diffstat (limited to 'clang/test/CodeGen/bool-init.c')
-rw-r--r-- | clang/test/CodeGen/bool-init.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |