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
4id obj;
5
6void 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
12typedef const void * CFTypeRef;
13extern "C" CFTypeRef CFBridgingRetain(id X);
14
15void 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