brintos

brintos / llvm-project-archived public Read only

0
0
Text · 245 B · 84efd80 Raw
9 lines · c
1// Check that #pragma diagnostic warning overrides -Werror.2//3// RUN: %clang_cc1 -verify -Werror %s4 5#pragma clang diagnostic warning "-Wsign-compare"6int f0(int x, unsigned y) {7  return x < y; // expected-warning {{comparison of integers}}8}9