13 lines · c
1#error foo2#error bar3 4// RUN: rm -f %t5// RUN: not %clang -ferror-limit=1 -fsyntax-only %s --serialize-diagnostics %t > /dev/null 2>&16// RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s7 8// This test case tests that we can handle both fatal errors and errors without categories.9 10// CHECK: {{.*[/\\]}}serialized-diags-no-category.c:1:2: error: foo []11// CHECK: Number of diagnostics: 212 13