namespace.fail.cpp (712B)
1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // REQUIRES: c++98 || c++03 || c++11 || c++14 11 12 // <filesystem> 13 14 // namespace std::filesystem 15 16 #include <filesystem> 17 #include "test_macros.h" 18 19 using namespace std::filesystem; 20 21 #if TEST_STD_VER >= 11 22 // expected-error@-3 {{no namespace named 'filesystem' in namespace 'std';}} 23 #else 24 // expected-error@-5 {{expected namespace name}} 25 #endif 26 27 int main() { 28 29 }