brintos

brintos / llvm-project-archived public Read only

0
0
Text · 396 B · 717dfba Raw
15 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3namespace test_deleted_ctor_note {4struct A {5  int a;6  A() = delete; // expected-note {{'A' has been explicitly marked deleted here}}7  A(int a_) : a(a_) { }8};9 10struct B {11  A a1, a2, a3; // expected-note {{default constructed field 'a2' declared here}}12  B(int a_) : a1(a_), a3(a_) { } // expected-error{{call to deleted constructor of 'A'}}13};14}15