1 // RUN: %clang_cc1 -std=c++2b -fsyntax-only -fcxx-exceptions -verify %s
2 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -fcxx-exceptions -verify %s
3 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -fcxx-exceptions -verify %s
4 // expected-no-diagnostics
7 namespace test_throwing
{
11 Widget(const Widget
&) = delete;
14 void seven(Widget w
) {
17 } // namespace test_throwing
19 // Non-constructor conversion
20 namespace test_non_constructor_conversion
{
24 operator Widget() const & = delete;
32 } // namespace test_non_constructor_conversion
35 namespace test_by_value_sinks
{
40 Widget(const Widget
&) = delete;
51 } // namespace test_by_value_sinks
54 namespace test_slicing
{
59 Base(Base
const &) = delete;
62 class Derived
: public Base
{};
68 } // namespace test_slicing