f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
9 lines
339 B
Text
9 lines
339 B
Text
// RUN: %clang_cc1 -fobjc-arc -isystem %S/Inputs %s -verify
|
|
|
|
#include <arc-system-header.h>
|
|
|
|
void f(A* a) {
|
|
a->data.void_ptr = 0;
|
|
a->data.a_b.b = 0; // expected-error{{'a_b' is unavailable: this system field has retaining ownership}}
|
|
}
|
|
// expected-note@arc-system-header.h:10{{declaration has been explicitly marked unavailable here}}
|