You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
293 B
10 lines
293 B
// 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 in ARC}}
|
|
}
|
|
// expected-note@arc-system-header.h:10{{field has non-trivial ownership qualification}}
|