brintos

brintos / llvm-project-archived public Read only

0
0
Text · 397 B · 2303a3c Raw
18 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s2// expected-no-diagnostics3 4class Base {5public:6  [[clang::not_tail_called]] virtual int foo1();7  virtual int foo2();8  [[clang::not_tail_called]] int foo3();9  virtual ~Base() {}10};11 12class Derived1 : public Base {13public:14  int foo1() override;15  [[clang::not_tail_called]] int foo2() override;16  [[clang::not_tail_called]] int foo4();17};18