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