blob: 27d53dc1891534c079788d34fbc4fcb74b80e743 [file] [log] [blame]
Daniel Dunbar53201a82011-10-04 21:17:24 +00001// Check that #pragma diagnostic warning overrides -Werror. This matches GCC's
2// original documentation, but not its earlier implementations.
3//
4// RUN: %clang_cc1 -verify -Werror %s
5
6#pragma clang diagnostic warning "-Wsign-compare"
7int f0(int x, unsigned y) {
8 return x < y; // expected-warning {{comparison of integers}}
9}