diagnostics-option-names.c 310 B

12345678
  1. // RUN: not %clang_cc1 -fdiagnostics-show-option -Werror -Weverything %s 2> %t
  2. // RUN: FileCheck < %t %s
  3. int f0(int, unsigned);
  4. int f0(int x, unsigned y) {
  5. // CHECK: comparison of integers of different signs{{.*}} [-Werror,-Wsign-compare]
  6. return x < y; // expected-error {{ : 'int' and 'unsigned int' }}
  7. }