Files
android_external_libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
Dan Albert 1d4a1edbc7 Revert "Update aosp/master libcxx rebase to r263688"
The world is burning.

This reverts commit c004fd909c, reversing
changes made to 1418e4163d.
2016-05-25 22:36:09 -07:00

25 lines
661 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// test <csetjmp>
#include <csetjmp>
#include <type_traits>
#ifndef setjmp
#error setjmp not defined
#endif
int main()
{
std::jmp_buf jb;
static_assert((std::is_same<decltype(std::longjmp(jb, 0)), void>::value),
"std::is_same<decltype(std::longjmp(jb, 0)), void>::value");
}