summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/objc2-warn-weak-decl.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/objc2-warn-weak-decl.m')
-rw-r--r--test/SemaObjC/objc2-warn-weak-decl.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaObjC/objc2-warn-weak-decl.m b/test/SemaObjC/objc2-warn-weak-decl.m
index 76b542d..22a3fca 100644
--- a/test/SemaObjC/objc2-warn-weak-decl.m
+++ b/test/SemaObjC/objc2-warn-weak-decl.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
+// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
struct S {
__weak id p; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
};
OpenPOWER on IntegriCloud