| // RUN: %clang_cc1 -triple=x86_64-apple-darwin -std=c++11 -emit-llvm -o - %s | FileCheck %s |
| [[clang::not_tail_called]] int m1(); |
| [[clang::not_tail_called]] virtual int m3(); |
| class Class2: public Class1 { |
| [[clang::not_tail_called]] int m4() override; |
| int foo1(int a, Class1 *c1, Class2 &c2) { |
| // CHECK-LABEL: define{{.*}} i32 @_Z4foo1iP6Class1R6Class2( |
| // CHECK: %{{[a-z0-9]+}} = notail call noundef i32 @_ZN6Class12m1Ev(ptr |
| // CHECK: %{{[a-z0-9]+}} = notail call noundef i32 %{{[0-9]+}}(ptr |
| // CHECK-NOT: %{{[a-z0-9]+}} = notail call noundef i32 %{{[0-9]+}}(ptr |
| // CHECK: %{{[a-z0-9]+}} = notail call noundef i32 %{{[0-9]+}}(ptr |
| // CHECK: %{{[a-z0-9]+}} = call noundef i32 @_ZN6Class12m2Ev(ptr |