mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:16:07 +00:00

`_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
6 lines
274 B
C++
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
|