commit | 43cdbf5cfe2da354d3d54655952ee7a8ae142485 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jan 09 18:47:25 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jan 09 18:47:25 2008 +0000 |
tree | 69ff6fa0eee830ef2aba3b4f0771b72303c24607 | |
parent | fb09aa0f75ddcda67574333b8295fe4b7d308541 [diff] [blame] |
implement proper support for _Bool in memory, which is usually i8, not i1. This fixes a crash reported by Seo Sanghyeon git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/globalinit.c b/test/CodeGen/globalinit.c index 66bffd3..717b0c1 100644 --- a/test/CodeGen/globalinit.c +++ b/test/CodeGen/globalinit.c
@@ -26,3 +26,9 @@ return c ? buf : bufptr; } + +_Bool booltest = 0; +void booltest2() { + static _Bool booltest3 = 4; +} +