Clang Project

clang_source_code/test/Frontend/warning-mapping-6.c
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"
7int f0(int x, unsigned y) {
8  return x < y;
9}
10