John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fobjc-arc -isystem %S/Inputs %s -verify |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 2 | |
| 3 | #include <arc-system-header.h> |
| 4 | |
| 5 | void f(A* a) { |
| 6 | a->data.void_ptr = 0; |
Argyrios Kyrtzidis | b8b0313 | 2011-06-24 00:08:59 +0000 | [diff] [blame] | 7 | a->data.a_b.b = 0; // expected-error{{'a_b' is unavailable: this system field has retaining ownership}} |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 8 | } |
| 9 | // Silly location below |
| 10 | // expected-note{{declaration has been explicitly marked unavailable here}} |