[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / attr-notail.cpp
blob2303a3cc54b7c6e5b0309c1353184fd3354812b9
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 class Base {
5 public:
6 [[clang::not_tail_called]] virtual int foo1();
7 virtual int foo2();
8 [[clang::not_tail_called]] int foo3();
9 virtual ~Base() {}
12 class Derived1 : public Base {
13 public:
14 int foo1() override;
15 [[clang::not_tail_called]] int foo2() override;
16 [[clang::not_tail_called]] int foo4();