blob: 3b4857ae0e9e2c6f32df0bd82a6c33dde56d189b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -verify %s
// rdar://10907410
void test(id pid, Class pclass) {
void (^block)(void) = @"help"; // expected-error {{initializing 'void (^)(void)' with an expression of incompatible type 'NSString *'}}
void (^block1)(void) = pid;
void (^block2)(void) = @"help"; // expected-error {{initializing 'void (^)(void)' with an expression of incompatible type 'NSString *'}}
void (^block3)(void) = @"help"; // expected-error {{initializing 'void (^)(void)' with an expression of incompatible type 'NSString *'}}
}
|