1 #error foo 2 #error bar 3 4 // RUN: rm -f %t 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 7 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: 2 12 13