1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // Before GCC 6, aggregate initialization kicks in.
13 // See https://stackoverflow.com/q/41799015/627587.
17 // explicit nothrow_t() = default;
19 // extern const nothrow_t nothrow;
21 // This test checks for LWG 2510.
26 std::nothrow_t
f() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}}
28 int main(int, char**) {