blob: 5e6cc5455998c0457b493b57c8e2e02f65f80ee8 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <iterator>
// class istream_iterator
// constexpr istream_iterator();
#include <iterator>
#include <cassert>
struct S { S(); }; // not constexpr
int main()
{
#if __cplusplus >= 201103L
{
constexpr std::istream_iterator<S> it;
}
#else
#error "C++11 only test"
#endif
}