Debian Codegraph @

clang/test/CXX/class/class.init/p1.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 namespace test_deleted_ctor_note {
4 struct A {
5 int a;
6 A() = delete; // expected-note {{'A' has been explicitly marked deleted here}}
7 A(int a_) : a(a_) { }
8 };
9
10 struct 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 }