Demo entry 6716223

C++11 Test

   

Submitted by anonymous on Feb 17, 2018 at 16:11
Language: C++. Code size: 292 Bytes.

constexpr decltype(1) x = 1;
constexpr int y = 1;
static_assert(true, "hello");


void f() noexcept {
    constexpr decltype(1) x = 1;
    constexpr int y = 1;
    static_assert(true, "hello");
    while(true);
    throw new int;
    auto [a, b] = std::make_tuple(1'000, 1'000);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).