annotate clang/test/Lexer/has_feature_rtti.cpp @ 165:597b3f1c2c93
fix call createTailCallEliminationPass
author |
anatofuz |
date |
Tue, 24 Mar 2020 15:30:52 +0900 |
parents |
1d019706d866 |
children |
|
rev |
line source |
150
|
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
|