xref: /aosp_15_r20/external/clang/test/Misc/diag-special-chars.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -verify
2*67e74705SXin Li // RUN: not %clang_cc1 %s 2>&1 | FileCheck %s
3*67e74705SXin Li 
4*67e74705SXin Li // There is a special characters on the following line, which is used as a
5*67e74705SXin Li // marker character for diagnostic printing.  Ensure diagnostics involving
6*67e74705SXin Li // this character does not cause problems with the diagnostic printer.
7*67e74705SXin Li #error Hi  Bye
8*67e74705SXin Li //expected-error@-1 {{Hi  Bye}}
9*67e74705SXin Li 
10*67e74705SXin Li // CHECK: error: Hi  Bye
11*67e74705SXin Li // CHECK: #error Hi <U+007F> Bye
12