[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Misc / serialized-diags-no-category.c
blob1b0f2043b5f80c4cd36bd16f75e1dc5546664656
1 #error foo
2 #error bar
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
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