includes.pass.cpp (749B)
1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 3 // 4 // The LLVM Compiler Infrastructure 5 // 6 // This file is dual licensed under the MIT and the University of Illinois Open 7 // Source Licenses. See LICENSE.TXT for details. 8 // 9 //===----------------------------------------------------------------------===// 10 11 // UNSUPPORTED: c++98, c++03, c++11 12 13 // <experimental/coroutine> 14 15 // Test that <experimental/coroutine> includes <new> 16 17 #include <experimental/coroutine> 18 19 int main(){ 20 // std::nothrow is not implicitly defined by the compiler when the include is 21 // missing, unlike other parts of <new>. Therefore we use std::nothrow to 22 // test for #include <new> 23 (void)std::nothrow; 24 25 }