diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
commit | 53a420fba21cf1644972b34dcd811a43cdb8368d (patch) | |
tree | 66a19f6f8b65215772549a51d688492ab8addc0d /test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp | |
parent | b50f1549701eb950921e5d6f2e55ba1a1dadbb43 (diff) |
Notes
Diffstat (limited to 'test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp')
-rw-r--r-- | test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp b/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp index eeb437379325..85ff8e15d162 100644 --- a/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp +++ b/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // <algorithm> // template <class PopulationIterator, class SampleIterator, class Distance, @@ -32,5 +34,8 @@ template <class PopulationIterator, class SampleIterator> void test() { } int main() { + // expected-error@algorithm:* {{static_assert failed "SampleIterator must meet the requirements of RandomAccessIterator"}} + // expected-error@algorithm:* 2 {{does not provide a subscript operator}} + // expected-error@algorithm:* {{invalid operands}} test<input_iterator<int *>, output_iterator<int *> >(); } |