summaryrefslogtreecommitdiff
path: root/test/SemaObjC/arc-no-runtime.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/arc-no-runtime.m')
-rw-r--r--test/SemaObjC/arc-no-runtime.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaObjC/arc-no-runtime.m b/test/SemaObjC/arc-no-runtime.m
index 49c439b167605..b75064f77651c 100644
--- a/test/SemaObjC/arc-no-runtime.m
+++ b/test/SemaObjC/arc-no-runtime.m
@@ -1,8 +1,9 @@
-// RUN: %clang_cc1 -fobjc-arc -verify %s
+// RUN: %clang_cc1 -fobjc-arc -verify -Wno-objc-root-class %s
// rdar://problem/9150784
void test(void) {
__weak id x; // expected-error {{the current deployment target does not support automated __weak references}}
+ __weak void *v; // expected-warning {{'__weak' only applies to objective-c object or block pointer types}}
}
@interface A