1 | // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-RTTI %s |
---|---|
2 | // RUN: %clang_cc1 -E -fno-rtti %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s |
3 | // RUN: %clang_cc1 -E -fno-rtti-data %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s |
4 | |
5 | #if __has_feature(cxx_rtti) |
6 | int foo(); |
7 | #else |
8 | int bar(); |
9 | #endif |
10 | |
11 | // CHECK-RTTI: foo |
12 | // CHECK-NO-RTTI: bar |
13 |