Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / FixIt / bridge-cast-in-arc.mm
bloba7acefd0b462a3975b7dc072a8273d3efc179ea0
1 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10  -fdiagnostics-parseable-fixits -x objective-c++ -fobjc-arc %s 2>&1 | FileCheck %s
3 id obj;
5 void Test1() {
6   void *foo = reinterpret_cast<void *>(obj);
8 // CHECK: {6:15-6:39}:"(__bridge void *)"
9 // CHECK: {6:15-6:39}:"(__bridge_retained void *)"
11 typedef const void * CFTypeRef;
12 extern "C" CFTypeRef CFBridgingRetain(id X);
14 void Test2() {
15   void *foo = reinterpret_cast<void *>(obj);
17 // CHECK: {15:15-15:39}:"(__bridge void *)"
18 // CHECK: {15:15-15:39}:"CFBridgingRetain"