commit | f8f873deef78de611dd793a1e1201bef0d5a54a3 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Fri May 30 18:07:22 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Fri May 30 18:07:22 2008 +0000 |
tree | dba464e3723a8bf68eb4ea260001449a7864ec0e | |
parent | 358256def087c4814c9ca74f4346fd345c939ecb [diff] [blame] |
Make sure to allow assigning a pointer to a bool. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/init.c b/test/Sema/init.c index ffe678c..efc934d 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c
@@ -42,3 +42,11 @@ return bp; } + +int pbool(void) { + typedef const _Bool cbool; + _Bool pbool1 = (void *) 0; + cbool pbool2 = &pbool; + return pbool2; +} +