diff options
Diffstat (limited to 'test/SemaObjC/arc-system-header.m')
-rw-r--r-- | test/SemaObjC/arc-system-header.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjC/arc-system-header.m b/test/SemaObjC/arc-system-header.m index acfd9a8585e37..68230e74b2d57 100644 --- a/test/SemaObjC/arc-system-header.m +++ b/test/SemaObjC/arc-system-header.m @@ -46,6 +46,13 @@ void test7(Test7 *p) { // expected-note@arc-system-header.h:41 4 {{declaration uses type that is ill-formed in ARC}} // expected-note@arc-system-header.h:41 2 {{property 'prop' is declared unavailable here}} } + +extern void doSomething(Test9 arg); +void test9() { + Test9 foo2 = {0, 0}; // expected-error {{'field' is unavailable in ARC}} + // expected-note@arc-system-header.h:56 {{field has non-trivial ownership qualification}} + doSomething(foo2); +} #endif // test8 in header |