Add a test case for going through typedefs until we reach "BOOL", that NSAPI::isObjCTypedef() is doing.

llvm-svn: 156604
This commit is contained in:
Argyrios Kyrtzidis 2012-05-11 01:53:27 +00:00
parent e37614438f
commit 74d7f15aed
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ int main() {
// CHECK: load i8** [[WithBoolSEL]]
typeof(b) b2; @(b2);
// CHECK: load i8** [[WithBoolSEL]]
typedef const typeof(b) MyBOOL; MyBOOL b3; @(b3);
// CHECK: load i8** [[WithBoolSEL]]
@((BOOL)i);
// CHECK: load i8** [[WithIntegerSEL]]
@((NSInteger)i);