1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 // UNSUPPORTED: c++03
10
11 // <iterator>
12
13 // class istream_iterator
14
15 // constexpr istream_iterator();
16
17 #include <iterator>
18 #include <cassert>
19
20 #include "test_macros.h"
21
22 struct S { S(); }; // not constexpr
23
main(int,char **)24 int main(int, char**)
25 {
26 constexpr std::istream_iterator<S> it;
27
28 return 0;
29 }
30