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 // test <setjmp.h> 11 12 #include <setjmp.h> 13 #include <type_traits> 14 15 int main() 16 { 17 jmp_buf jb; 18 static_assert((std::is_same<decltype(longjmp(jb, 0)), void>::value), 19 "std::is_same<decltype(longjmp(jb, 0)), void>::value"); 20 } 21