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 // <iterator>
10 
11 // class istream_iterator
12 
13 // constexpr istream_iterator();
14 
15 #include <iterator>
16 #include <cassert>
17 
18 #include "test_macros.h"
19 
20 struct S { S(); }; // not constexpr
21 
main(int,char **)22 int main(int, char**)
23 {
24 #if TEST_STD_VER >= 11
25     {
26     constexpr std::istream_iterator<S> it;
27     }
28 #else
29 #error "C++11 only test"
30 #endif
31 
32   return 0;
33 }
34