Clang Project

clang_source_code/test/Lexer/newline-nul.c
1// RUN: %clang_cc1 -E %s -verify
2
3// We used to crash if a line continuation was followed by a nul byte within a
4// preprocessing directive.
5# if 1 \
6#if something_else // expected-warning {{null character ignored}} expected-error {{not a valid binary operator}}
7#error error
8#endif
9#endif // expected-error {{#endif without #if}}
10