Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C

raw
1 // PR c++/110102
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-fconcepts-diagnostics-depth=2" { target c++20 } }
4 // { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
5
6 // { dg-error "deleted|construct_at" "" { target *-*-* } 0 }
7
8 #include <list>
9
10 struct A {
11 A(int) {}
12 A(const A&) = delete; // { dg-message "declared here" }
13 A(A&&) {}
14 };
15 int main() {
16 std::list<A> v = {1,2,3};
17 }