summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/optimization-remark.c
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-01-29 19:33:48 +0000
committerJames Y Knight <jyknight@google.com>2019-01-29 19:33:48 +0000
commit3f8b9166989709d1d893524f5590f8064e824554 (patch)
treeb08a01cb714f049e320e9cc4b785ce6550ec23b2 /clang/test/Frontend/optimization-remark.c
parentd37ff4e888729c807fc4b9e8d2cac0846c5dcf73 (diff)
downloadbcm5719-llvm-3f8b9166989709d1d893524f5590f8064e824554.tar.gz
bcm5719-llvm-3f8b9166989709d1d893524f5590f8064e824554.zip
Fix the behavior of clang's -w flag.
It is intended to disable _all_ warnings, even those upgraded to errors via `-Werror=warningname` or `#pragma clang diagnostic error' Fixes: https://llvm.org/PR38231 Differential Revision: https://reviews.llvm.org/D53199 llvm-svn: 352535
Diffstat (limited to 'clang/test/Frontend/optimization-remark.c')
-rw-r--r--clang/test/Frontend/optimization-remark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Frontend/optimization-remark.c b/clang/test/Frontend/optimization-remark.c
index 29eaa03243e..234958d9eaa 100644
--- a/clang/test/Frontend/optimization-remark.c
+++ b/clang/test/Frontend/optimization-remark.c
@@ -13,6 +13,9 @@
// RUN: %clang_cc1 %s -Rpass=inline -Rno-everything -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-NO-REMARKS
// RUN: %clang_cc1 %s -Rpass=inline -Rno-everything -Reverything -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-REMARKS
//
+// Check that -w doesn't disable remarks.
+// RUN: %clang_cc1 %s -Rpass=inline -w -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-REMARKS
+//
// FIXME: -Reverything should imply -Rpass=.*.
// RUN: %clang_cc1 %s -Reverything -emit-llvm -o - 2>/dev/null | FileCheck %s --check-prefix=CHECK-NO-REMARKS
//
OpenPOWER on IntegriCloud