1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only "-triple" "x86_64-apple-macosx10.10.0" -fobjc-runtime-has-weak -fobjc-weak %s -verify %s 2*67e74705SXin Li 3*67e74705SXin Li#define __strong 4*67e74705SXin Li// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}} 5*67e74705SXin Li#define __weak 6*67e74705SXin Li// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}} 7*67e74705SXin Li#define __unsafe_unretained 8*67e74705SXin Li// expected-warning@-1 {{ignoring redefinition of Objective-C qualifier macro}} 9*67e74705SXin Li#define __autoreleased 10*67e74705SXin Li// No warning because this is the default expansion anyway. 11*67e74705SXin Li 12*67e74705SXin Li// Check that this still expands to the right text. 13*67e74705SXin Livoid test() { 14*67e74705SXin Li goto label; // expected-error {{cannot jump from this goto statement to its label}} 15*67e74705SXin Li __weak id x; // expected-note {{jump bypasses initialization of __weak variable}} 16*67e74705SXin Lilabel: 17*67e74705SXin Li return; 18*67e74705SXin Li} 19*67e74705SXin Li 20*67e74705SXin Li#undef __strong 21*67e74705SXin Li#define __strong 22*67e74705SXin Li// No warning. 23