diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-03-03 04:48:01 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-03-03 04:48:01 +0000 |
| commit | 78350edafb7fcf235716ef7c046a0533757ee3c3 (patch) | |
| tree | 7c456ff5bd144c0055b592944f392e9f55cae51b /clang/test/CodeGen/bool-convert.c | |
| parent | 463421deb1c3b6e5e41dba132853645cdd260195 (diff) | |
| download | bcm5719-llvm-78350edafb7fcf235716ef7c046a0533757ee3c3.tar.gz bcm5719-llvm-78350edafb7fcf235716ef7c046a0533757ee3c3.zip | |
Fix for PR3687: use the memory representation for booleans when a
sub-type describes a memory location, like the pointee type of a pointer
or the element type of an array.
llvm-svn: 65925
Diffstat (limited to 'clang/test/CodeGen/bool-convert.c')
| -rw-r--r-- | clang/test/CodeGen/bool-convert.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/bool-convert.c b/clang/test/CodeGen/bool-convert.c new file mode 100644 index 00000000000..8d801c3cf27 --- /dev/null +++ b/clang/test/CodeGen/bool-convert.c @@ -0,0 +1,7 @@ +// RUN: clang -emit-llvm < %s | grep i1 | count 1 +// All of these should uses the memory representation of _Bool +struct teststruct1 {_Bool a, b;} test1; +_Bool* test2; +_Bool test3[10]; +_Bool (*test4)[]; + |

