diff options
author | James Y Knight <jyknight@google.com> | 2019-01-29 19:33:48 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-01-29 19:33:48 +0000 |
commit | 3f8b9166989709d1d893524f5590f8064e824554 (patch) | |
tree | b08a01cb714f049e320e9cc4b785ce6550ec23b2 /clang/test/Frontend/optimization-remark.c | |
parent | d37ff4e888729c807fc4b9e8d2cac0846c5dcf73 (diff) | |
download | bcm5719-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.c | 3 |
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 // |