mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 14:36:10 +00:00

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
9 lines
245 B
C
9 lines
245 B
C
// Check that #pragma diagnostic warning overrides -Werror.
|
|
//
|
|
// RUN: %clang_cc1 -verify -Werror %s
|
|
|
|
#pragma clang diagnostic warning "-Wsign-compare"
|
|
int f0(int x, unsigned y) {
|
|
return x < y; // expected-warning {{comparison of integers}}
|
|
}
|