1 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c++ -fobjc-arc %s 2>&1 | FileCheck %s 2 // rdar://12788838 3 4 id obj; 5 6 void Test1() { 7 void *foo = reinterpret_cast<void *>(obj); 8 } 9 // CHECK: {7:15-7:39}:"(__bridge void *)" 10 // CHECK: {7:15-7:39}:"(__bridge_retained void *)" 11 12 typedef const void * CFTypeRef; 13 extern "C" CFTypeRef CFBridgingRetain(id X); 14 15 void Test2() { 16 void *foo = reinterpret_cast<void *>(obj); 17 } 18 // CHECK: {16:15-16:39}:"(__bridge void *)" 19 // CHECK: {16:15-16:39}:"CFBridgingRetain" 20