176101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar// RUN: not %clang_cc1 -fdiagnostics-show-option -Werror -Weverything %s 2> %t
276101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar// RUN: FileCheck < %t %s
376101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar
476101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbarint f0(int, unsigned);
576101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbarint f0(int x, unsigned y) {
676101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar// CHECK: comparison of integers of different signs{{.*}} [-Werror,-Wsign-compare]
776101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar  return x < y; // expected-error {{ : 'int' and 'unsigned int'  }}
876101cfe52d1b56974bf0e316247b3201f87c463Daniel Dunbar}
9