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