1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 #pragma clang arc_cf_code_audited foo // expected-error {{expected 'begin' or 'end'}}
5 #pragma clang arc_cf_code_audited begin foo // expected-warning {{extra tokens at end of #pragma directive}}
7 #pragma clang arc_cf_code_audited end
8 #pragma clang arc_cf_code_audited end // expected-error {{not currently inside '#pragma clang arc_cf_code_audited'}}
10 #pragma clang arc_cf_code_audited begin // expected-note {{#pragma entered here}}
11 #pragma clang arc_cf_code_audited begin // expected-error {{already inside '#pragma clang arc_cf_code_audited'}} expected-note {{#pragma entered here}}
13 #include "Inputs/pragma-arc-cf-code-audited.h" // expected-error {{cannot #include files inside '#pragma clang arc_cf_code_audited'}}
15 // This is actually on the #pragma line in the header.
16 // expected-error@Inputs/pragma-arc-cf-code-audited.h:16 {{'#pragma clang arc_cf_code_audited' was not ended within this file}}
18 #pragma clang arc_cf_code_audited begin // expected-error {{'#pragma clang arc_cf_code_audited' was not ended within this file}}