mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 23:09:03 -04:00

Set 5 Objective-C++ tests to run at gnu++98 Differential Revision: https://reviews.llvm.org/D29739 llvm-svn: 294997
10 lines
306 B
Plaintext
10 lines
306 B
Plaintext
// RUN: %clang_cc1 -std=gnu++98 -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}}
|