xref: /aosp_15_r20/external/clang/test/Misc/serialized-diags-no-issue.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li void foo();
2*67e74705SXin Li 
3*67e74705SXin Li // RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t
4*67e74705SXin Li // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
5*67e74705SXin Li // RUN: rm -f  %t
6*67e74705SXin Li 
7*67e74705SXin Li // NOTE: it is important that this test case contains no issues.  It tests
8*67e74705SXin Li // that serialize diagnostics work in the absence of any issues.
9*67e74705SXin Li 
10*67e74705SXin Li // CHECK: Number of diagnostics: 0
11