brintos

brintos / llvm-project-archived public Read only

0
0
Text · 350 B · 26eaa2e Raw
13 lines · cpp
1// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-RTTI %s2// RUN: %clang_cc1 -E -fno-rtti %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s3// RUN: %clang_cc1 -E -fno-rtti-data %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s4 5#if __has_feature(cxx_rtti)6int foo();7#else8int bar();9#endif10 11// CHECK-RTTI: foo12// CHECK-NO-RTTI: bar13