blob: 8359d267245fea8792404b52d9c6e167947432bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: no-localization
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: msvc && (clang-16 || clang-17)
// Test the libc++ extension that the value stored in `std::ranges::istream_view` has been marked
// as _LIBCPP_NO_UNIQUE_ADDRESS
#include <istream>
#include <ranges>
struct Empty {
friend std::istream& operator>>(std::istream& i, Empty const&) { return i; }
};
static_assert(sizeof(std::ranges::istream_view<Empty>) == sizeof(void*));
|