etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / FixIt / bridge-cast-in-arc.mm
blobd32629d7c700c75c7550c448881c7c3f933751be
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
4 id obj;
6 void Test1() {
7   void *foo = reinterpret_cast<void *>(obj);
9 // CHECK: {7:15-7:39}:"(__bridge void *)"
10 // CHECK: {7:15-7:39}:"(__bridge_retained void *)"
12 typedef const void * CFTypeRef;
13 extern "C" CFTypeRef CFBridgingRetain(id X);
15 void Test2() {
16   void *foo = reinterpret_cast<void *>(obj);
18 // CHECK: {16:15-16:39}:"(__bridge void *)"
19 // CHECK: {16:15-16:39}:"CFBridgingRetain"