summaryrefslogtreecommitdiffstats
path: root/test/Lexer/has_feature_rtti.cpp
blob: 690906c292f236b978269c79ff00b1581af8a8d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang -E -frtti %s -o - | FileCheck --check-prefix=CHECK-RTTI %s
// RUN: %clang -E -fno-rtti %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s

#if __has_feature(cxx_rtti)
int foo();
#else
int bar();
#endif

// CHECK-RTTI: foo
// CHECK-NO-RTTI: bar
OpenPOWER on IntegriCloud