diff options
Diffstat (limited to 'test/Frontend/Weverything.c')
-rw-r--r-- | test/Frontend/Weverything.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Frontend/Weverything.c b/test/Frontend/Weverything.c new file mode 100644 index 000000000000..32f314720b24 --- /dev/null +++ b/test/Frontend/Weverything.c @@ -0,0 +1,9 @@ +// Regression check that -pedantic-errors doesn't cause other diagnostics to +// become errors. +// +// RUN: %clang_cc1 -verify -Weverything -pedantic-errors %s + +int f0(int, unsigned); +int f0(int x, unsigned y) { + return x < y; // expected-warning {{comparison of integers}} +} |