1 // Check that #pragma diagnostic warning overrides -Werror.
2 //
3 // RUN: %clang_cc1 -verify -Werror %s
4
5 #pragma clang diagnostic warning "-Wsign-compare"
f0(int x,unsigned y)6 int f0(int x, unsigned y) {
7 return x < y; // expected-warning {{comparison of integers}}
8 }
9