llvm-project/clang/test/SemaObjCXX/arc-bool-conversion.mm

9 lines
187 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify -fblocks -triple x86_64-apple-darwin10.0.0 %s
// expected-no-diagnostics
// rdar://9310049
bool fn(id obj) {
return (bool)obj;
}