summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/arc-system-header.mm
blob: 5f5445c8956bd9a211e1483007b40b04b7be7296 (plain)
1
2
3
4
5
6
7
8
9
// 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}}
OpenPOWER on IntegriCloud