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, c++11
10
11// <propagate_const>
12
13// const element_type& propagate_const::operator*() const;
14
15#include <experimental/propagate_const>
16#include "test_macros.h"
17#include "propagate_const_helpers.h"
18#include <cassert>
19
20using std::experimental::propagate_const;
21
22int main(int, char**) {
23
24 typedef propagate_const<X> P;
25
26 constexpr P p(1);
27
28 static_assert(*p==1,"");
29
30 return 0;
31}
32

source code of libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/propagate_const.observers/dereference.pass.cpp