warning-mapping-6.c 226 B

123456789
  1. // Check that "#pragma diagnostic error" is suppressed by -w.
  2. //
  3. // RUN: %clang_cc1 -verify -Werror -w %s
  4. // expected-no-diagnostics
  5. #pragma gcc diagnostic error "-Wsign-compare"
  6. int f0(int x, unsigned y) {
  7. return x < y;
  8. }