| 1 | // Check that "#pragma diagnostic error" is suppressed by -w. |
|---|---|
| 2 | // |
| 3 | // RUN: %clang_cc1 -verify -Werror -w %s |
| 4 | |
| 5 | // expected-no-diagnostics |
| 6 | #pragma gcc diagnostic error "-Wsign-compare" |
| 7 | int f0(int x, unsigned y) { |
| 8 | return x < y; |
| 9 | } |
| 10 |
| 1 | // Check that "#pragma diagnostic error" is suppressed by -w. |
|---|---|
| 2 | // |
| 3 | // RUN: %clang_cc1 -verify -Werror -w %s |
| 4 | |
| 5 | // expected-no-diagnostics |
| 6 | #pragma gcc diagnostic error "-Wsign-compare" |
| 7 | int f0(int x, unsigned y) { |
| 8 | return x < y; |
| 9 | } |
| 10 |