summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.types/nullptr_t_integral_cast.fail.cpp
blob: e6dc3772b00259d2a2ffb767bd1e57b62539f864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

// typedef decltype(nullptr) nullptr_t;

#include <cstddef>

int main()
{
    std::ptrdiff_t i = static_cast<std::ptrdiff_t>(nullptr);
}
OpenPOWER on IntegriCloud