10 lines · c
1// Check that "#pragma diagnostic error" is suppressed by -w.2//3// RUN: %clang_cc1 -verify -Werror -w %s4 5// expected-no-diagnostics6#pragma gcc diagnostic error "-Wsign-compare"7int f0(int x, unsigned y) {8 return x < y;9}10 1// Check that "#pragma diagnostic error" is suppressed by -w.2//3// RUN: %clang_cc1 -verify -Werror -w %s4 5// expected-no-diagnostics6#pragma gcc diagnostic error "-Wsign-compare"7int f0(int x, unsigned y) {8 return x < y;9}10