// RUN: %clang_cc1 -fsyntax-only -fobjc-gc -fobjc-nonfragile-abi -verify %s

void f0(__weak id *); // expected-note{{candidate function not viable: 1st argument ('id *') has no lifetime, but parameter has __weak lifetime}}

void test_f0(id *x) {
  f0(x); // expected-error{{no matching function for call to 'f0'}}
}

@interface A
@end

void f1(__weak id*);
void test_f1(__weak A** a) {
  f1(a);
}

@interface B : A
@end

void f2(__weak A**);
void test_f2(__weak B** b) {
  f2(b);
}


// RUN: %clang_cc1 -fsyntax-only -triple i386-apple-darwin9 -fobjc-gc -verify %s

void f0(__weak id *); // expected-note{{candidate function not viable: 1st argument ('id *') has no lifetime, but parameter has __weak lifetime}}

void test_f0(id *x) {
  f0(x); // expected-error{{no matching function for call to 'f0'}}
}

@interface A
@end

void f1(__weak id*);
void test_f1(__weak A** a) {
  f1(a);
}

@interface B : A
@end

void f2(__weak A**);
void test_f2(__weak B** b) {
  f2(b);
}


Add triple in the hope of unbreaking the bubuildbot
Add triple in the hope of unbreaking the bubuildbot

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130280 91177308-0d34-0410-b5e6-96231b3b80d8
