Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 #pragma clang arc_cf_code_audited foo // expected-error {{expected 'begin' or 'end'}}
      4 
      5 #pragma clang arc_cf_code_audited begin foo // expected-warning {{extra tokens at end of #pragma directive}}
      6 
      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'}}
      9 
     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}}
     12 
     13 #include "Inputs/pragma-arc-cf-code-audited.h" // expected-error {{cannot #include files inside '#pragma clang arc_cf_code_audited'}}
     14 
     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}}
     17 
     18 #pragma clang arc_cf_code_audited begin // expected-error {{'#pragma clang arc_cf_code_audited' was not ended within this file}}
     19