summaryrefslogtreecommitdiff
path: root/clang/test/Frontend/warning-mapping-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Frontend/warning-mapping-2.c')
-rw-r--r--clang/test/Frontend/warning-mapping-2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Frontend/warning-mapping-2.c b/clang/test/Frontend/warning-mapping-2.c
new file mode 100644
index 0000000..39ba499
--- /dev/null
+++ b/clang/test/Frontend/warning-mapping-2.c
@@ -0,0 +1,5 @@
+// Check that -w has lower priority than -pedantic-errors.
+// RUN: %clang_cc1 -verify -pedantic-errors -w %s
+
+void f0() { f1(); } // expected-error {{implicit declaration of function}}
+