5 // RUN: not %clang -ferror-limit=1 -fsyntax-only %s --serialize-diagnostics %t > /dev/null 2>&1
6 // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
8 // This test case tests that we can handle both fatal errors and errors without categories.
10 // CHECK: {{.*[/\\]}}serialized-diags-no-category.c:1:2: error: foo []
11 // CHECK: Number of diagnostics: 2