Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / serialized-diags-frontend.c
blob7eab021937b771fa0577672b832e8eba1f82ab2e
1 // RUN: rm -f %t
2 // RUN: %clang -fsyntax-only %s -Wblahblah --serialize-diagnostics %t > /dev/null 2>&1
3 // RUN: c-index-test -read-diagnostics %t 2>&1 | FileCheck %s
5 // This test case tests that we can handle frontend diagnostics.
7 // CHECK: warning: unknown warning option '-Wblahblah'
8 // CHECK: Number of diagnostics: 1