diff options
Diffstat (limited to 'clang/test/SemaObjCXX/arc-system-header.mm')
-rw-r--r-- | clang/test/SemaObjCXX/arc-system-header.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/arc-system-header.mm b/clang/test/SemaObjCXX/arc-system-header.mm new file mode 100644 index 0000000..107b5b5 --- /dev/null +++ b/clang/test/SemaObjCXX/arc-system-header.mm @@ -0,0 +1,10 @@ +// 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}} +} +// Silly location below +// expected-note{{declaration has been explicitly marked unavailable here}} |