23 lines · plain
1// RUN: %clang_cc1 -fsyntax-only "-triple" "x86_64-apple-macosx10.10.0" -fobjc-runtime-has-weak -fobjc-weak %s -verify %s2 3#define __strong4// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}}5#define __weak6// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}}7#define __unsafe_unretained8// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}}9#define __autoreleased10// No warning because this is the default expansion anyway.11 12// Check that this still expands to the right text.13void test(void) {14 goto label; // expected-error {{cannot jump from this goto statement to its label}}15 __weak id x; // expected-note {{jump bypasses initialization of __weak variable}}16label:17 return;18}19 20#undef __strong21#define __strong22// No warning.23