11 lines · c
1void foo(void);2 3// RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t4// RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s5// RUN: rm -f %t6 7// NOTE: it is important that this test case contains no issues. It tests8// that serialize diagnostics work in the absence of any issues.9 10// CHECK: Number of diagnostics: 011