llvm-project/clang/test/Driver/msvc-static-rtti.cpp
Akira Hatanaka 3b578ae908 [Driver] Call hasFlag instead of hasArg
`_HAS_STATIC_RTTI` should be set to 0 only by `-fno-rtti` according to the
summary of https://reviews.llvm.org/D103771.

rdar://92039243

Differential Revision: https://reviews.llvm.org/D124312
2022-04-22 20:14:50 -07:00

6 lines
274 B
C++

// RUN: %clang -target x86_64-pc-windows-msvc -fno-rtti -### %s 2>&1 | FileCheck %s -check-prefix NO-RTTI
// RUN: %clang -target x86_64-pc-windows-msvc -frtti -### %s 2>&1 | FileCheck %s -check-prefix RTTI
// RTTI-NOT: -D_HAS_STATIC_RTTI=0
// NO-RTTI: -D_HAS_STATIC_RTTI=0