1 // RUN: %clang_cc1 -Eonly -verify %s
5 #endif junk // shouldn't produce diagnostics
9 #endif junk // expected-warning{{extra tokens at end of #endif directive}}
11 #if 1 junk // expected-error{{token is not a valid binary operator in a preprocessor subexpression}}
12 #X // shouldn't produce diagnostics (block #if condition not valid, so skipped)
14 #X // expected-error{{invalid preprocessing directive}}
18 // diagnostics should not be produced until final #endif
27 #endif junk // expected-warning{{extra tokens at end of #endif directive}}