Louis Dionne | f7b4323 | 2019-03-19 19:27:29 +0000 | [diff] [blame] | 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 | // REQUIRES: c++98 || c++03 || c++11 || c++14 |
| 10 | |
| 11 | // <filesystem> |
| 12 | |
| 13 | // namespace std::filesystem |
| 14 | |
| 15 | #include <filesystem> |
| 16 | #include "test_macros.h" |
| 17 | |
| 18 | using namespace std::filesystem; |
| 19 | |
| 20 | #if TEST_STD_VER >= 11 |
| 21 | // expected-error@-3 {{no namespace named 'filesystem' in namespace 'std';}} |
| 22 | #else |
| 23 | // expected-error@-5 {{expected namespace name}} |
| 24 | #endif |
| 25 | |
| 26 | int main(int, char**) { |
| 27 | |
| 28 | |
| 29 | return 0; |
| 30 | } |