From: Argyrios Kyrtzidis Date: Fri, 11 May 2012 01:53:27 +0000 (+0000) Subject: Add a test case for going through typedefs until we reach "BOOL", that NSAPI::isObjCT... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79993dc53d212c663415d3c48ed5ec41cee2bdf7;p=clang Add a test case for going through typedefs until we reach "BOOL", that NSAPI::isObjCTypedef() is doing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/boxing.m b/test/CodeGenObjC/boxing.m index 16b66bbeb4..3c24779f9a 100644 --- a/test/CodeGenObjC/boxing.m +++ b/test/CodeGenObjC/boxing.m @@ -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);