xref: /llvm-project/clang/test/Frontend/warning-mapping-5.c (revision 3f8b9166989709d1d893524f5590f8064e824554)
1 // Check that #pragma diagnostic warning overrides -Werror.
2 //
3 // RUN: %clang_cc1 -verify -Werror %s
4 
5 #pragma clang diagnostic warning "-Wsign-compare"
f0(int x,unsigned y)6 int f0(int x, unsigned y) {
7   return x < y; // expected-warning {{comparison of integers}}
8 }
9