xref: /llvm-project/clang/test/Frontend/diagnostic-pipe.c (revision 718aac9f7a19227b5c5ec85819a3a5ae24ce32e1)
1 
2 _Static_assert(0, "");
3 
4 /// Test that piping the output into another process disables syntax
5 /// highlighting of code snippets.
6 
7 // RUN: not %clang_cc1 %s -o /dev/null 2>&1 | FileCheck %s
8 // CHECK: error: static assertion failed:
9 // CHECK-NEXT: {{^}}   2 | _Static_assert(0, "");{{$}}
10