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