1*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===// 2*4684ddb6SLionel Sambuc // 3*4684ddb6SLionel Sambuc // The LLVM Compiler Infrastructure 4*4684ddb6SLionel Sambuc // 5*4684ddb6SLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*4684ddb6SLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*4684ddb6SLionel Sambuc // 8*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===// 9*4684ddb6SLionel Sambuc 10*4684ddb6SLionel Sambuc // test <setjmp.h> 11*4684ddb6SLionel Sambuc 12*4684ddb6SLionel Sambuc #include <setjmp.h> 13*4684ddb6SLionel Sambuc #include <type_traits> 14*4684ddb6SLionel Sambuc main()15*4684ddb6SLionel Sambucint main() 16*4684ddb6SLionel Sambuc { 17*4684ddb6SLionel Sambuc jmp_buf jb; 18*4684ddb6SLionel Sambuc static_assert((std::is_same<__typeof__(longjmp(jb, 0)), void>::value), 19*4684ddb6SLionel Sambuc "std::is_same<__typeof__(longjmp(jb, 0)), void>::value"); 20*4684ddb6SLionel Sambuc } 21