Since we officially don't support several older compilers now, we can drop a lot of the markup in the test suite. This helps keep the test suite simple and makes sure that UNSUPPORTED annotations don't rot. This is the first patch of a series that will remove annotations for compilers that are now unsupported. Differential Revision: https://reviews.llvm.org/D107787
27 lines
686 B
C++
27 lines
686 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// UNSUPPORTED: c++03
|
|
|
|
// struct nothrow_t {
|
|
// explicit nothrow_t() = default;
|
|
// };
|
|
// extern const nothrow_t nothrow;
|
|
|
|
// This test checks for LWG 2510.
|
|
|
|
#include <new>
|
|
|
|
|
|
std::nothrow_t f() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}}
|
|
|
|
int main(int, char**) {
|
|
return 0;
|
|
}
|