Debian Codegraph @

libstdc++-v3/testsuite/23_containers/priority_queue/lwg3529.cc

raw
1 // { dg-do compile { target c++11 } }
2
3 #include <queue>
4
5 struct C : std::vector<int>
6 {
7 C(int*, int*) { }
8 };
9
10 int i;
11
12 // LWG 3529. priority_queue(first, last) should construct c with (first, last)
13 std::priority_queue<int, C> q(&i, &i);