1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2 // RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
3 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
4 // RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
14 void foo (__weak id *param) {