Files
clang-p2996/clang/test/Lexer/has_feature_rtti.cpp
Daniel Dunbar 5618e98f33 Update tests to use %clang instead of 'clang', and forcibly disable use of '
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to
garbage).

llvm-svn: 91460
2009-12-15 22:01:24 +00:00

12 lines
260 B
C++

// 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