summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc2-weak-assign.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/objc2-weak-assign.m')
-rw-r--r--test/CodeGenObjC/objc2-weak-assign.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGenObjC/objc2-weak-assign.m b/test/CodeGenObjC/objc2-weak-assign.m
index 42fa773..74c0c00 100644
--- a/test/CodeGenObjC/objc2-weak-assign.m
+++ b/test/CodeGenObjC/objc2-weak-assign.m
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
+// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
+// RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
__weak id* x;
id* __weak y;
OpenPOWER on IntegriCloud