[PATCH] D86369: [Sema][MSVC] warn at dynamic_cast when /GR- is given
Zequan Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 26 11:57:33 PDT 2020
zequanwu added inline comments.
================
Comment at: clang/test/SemaCXX/ms_no_dynamic_cast.cpp:1
+// RUN: %clang_cl %s /GR- -fsyntax-only 2>&1 | FileCheck %s
+
----------------
hans wrote:
> When using %clang_cl, the source file should always come after a "--", otherwise if for example the source file is "/Users/foo/src/test.cc" the filename can get interpreted as a command-line option.
>
> But tests outside of Driver/ generally invoke cc1 directly, with %clang_cc1 and passing the appropriate flags. I'd suggest doing that here too. (And in the other test.)
This test is for testing in clang-cl. Another test is for clang. If I use %clang_cc1, /GR- can not be passed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86369/new/
https://reviews.llvm.org/D86369
More information about the cfe-commits
mailing list