
It is intended to disable _all_ warnings, even those upgraded to errors via `-Werror=warningname` or `#pragma clang diagnostic error' Fixes: https://llvm.org/PR38231 Differential Revision: https://reviews.llvm.org/D53199 llvm-svn: 352535
10 lines
226 B
C
10 lines
226 B
C
// Check that "#pragma diagnostic error" is suppressed by -w.
|
|
//
|
|
// RUN: %clang_cc1 -verify -Werror -w %s
|
|
|
|
// expected-no-diagnostics
|
|
#pragma gcc diagnostic error "-Wsign-compare"
|
|
int f0(int x, unsigned y) {
|
|
return x < y;
|
|
}
|