llvm-for-llvmta/tools/clang/test/SemaObjCXX/Inputs/nullability-pragmas-2.h

13 lines
608 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
#pragma clang assume_nonnull start // expected-error{{expected 'begin' or 'end'}}
#pragma clang assume_nonnull begin // expected-note{{#pragma entered here}}
#include "nullability-pragmas-3.h" // expected-error{{cannot #include files inside '#pragma clang assume_nonnull'}}
#pragma clang assume_nonnull begin // expected-note{{#pragma entered here}}
#pragma clang assume_nonnull begin // expected-error{{already inside '#pragma clang assume_nonnull'}}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin // expected-error{{'#pragma clang assume_nonnull' was not ended within this file}}