]> granicus.if.org Git - clang/commit
Fixed some rtti-options tests.
authorSunil Srivastava <sunil_srivastava@playstation.sony.com>
Tue, 15 May 2018 18:28:42 +0000 (18:28 +0000)
committerSunil Srivastava <sunil_srivastava@playstation.sony.com>
Tue, 15 May 2018 18:28:42 +0000 (18:28 +0000)
commitdf58e5d6add3398dce16916d46506e6c5549f7b0
tree1175b719605dd3f72f14ec00cf1fdf4f8b671fbb
parent88e10fe9cd95637acbe5cbc317b200c69546fff7
Fixed some rtti-options tests.

Certain tests in rtti-options.cpp are not really testing anything because they are testing for the absence of -frtti option to the cc1 process. Since the cc1 process does not take -frtti option, these tests are passing tautologically.

The RTTI mode is enabled by default in cc1, and -fno-rtti disables it. Therefore the correct way to check for enabling of RTTI is to check for the absence of -fno-rtti to cc1, and the correct way to check for disabling of RTTI is to check for the presence of -fno-rtti to cc1.

This patch fixes those tests.

Differential Revision: https://reviews.llvm.org/D46836

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332384 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/rtti-options.cpp