Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Frontend / warning-mapping-5.c
blob84efd8010d0fd12fb33af5d8ebd85e77b47755c4
1 // Check that #pragma diagnostic warning overrides -Werror.
2 //
3 // RUN: %clang_cc1 -verify -Werror %s
5 #pragma clang diagnostic warning "-Wsign-compare"
6 int f0(int x, unsigned y) {
7 return x < y; // expected-warning {{comparison of integers}}