Skip to content

Instantly share code, notes, and snippets.

View EricWF's full-sized avatar

Eric EricWF

View GitHub Profile
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
#include <memory>
; ModuleID = 'new_nothrow_replace.pass.cpp'
source_filename = "new_nothrow_replace.pass.cpp"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"struct.std::nothrow_t" = type { i8 }
%struct.A = type { i8 }
$_ZN1AC2Ev = comdat any
// FIXME(EricWF) Don't test the where noexcept is *not* part of the type system
// once implementations have caught up.
void test_noexcept_function_pointers()
{
struct Dummy { void foo() noexcept {} static void bar() noexcept {} };
#if !defined(__cpp_noexcept_function_type)
{
// Check that PMF's and function pointers *work*. is_nothrow_callable will always
// return false because 'noexcept' is not part of the function type.
eric@home:~/workspace/libcxx/test/std/experimental/numeric/numeric.ops$ ./a.out --benchmark_min_time=5.0 --benchmark_repetitions=3
Run on (4 X 4228.19 MHz CPU s)
2016-06-14 19:04:33
Benchmark Time(ns) CPU(ns) Iterations
---------------------------------------------------
BM_gcd_imp1 954744 954359 6836
BM_gcd_imp1 978106 977765 6836
BM_gcd_imp1 967128 967232 6836
BM_gcd_imp1_mean 966659 966452 6836
BM_gcd_imp1_stddev 9543 9571 0
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11
In file included from libs/log/src/named_scope_format_parser.cpp:19:
In file included from /home/eric/llvm-buildslave/libcxx-slave/boost/llvm/projects/libcxx/include/string:442:
In file included from /home/eric/llvm-buildslave/libcxx-slave/boost/llvm/projects/libcxx/include/algorithm:633:
/home/eric/llvm-buildslave/libcxx-slave/boost/llvm/projects/libcxx/include/utility:285:9: error: field has incomplete type 'boost::spirit::info'
_T1 first;
^
./boost/type_traits/is_constructible.hpp:33:73: note: in instantiation of template class 'std::__1::pair<boost::spirit::info, boost::spirit::info>' requested here
template<typename T, typename Arg, typename = decltype(::new T(boost::declval<Arg>()))>
^
./boost/type_traits/is_constructible.hpp:34:46: note: in instantiation of default argument for 'test1<boost::spirit::info::nil_, std::__1::pair<boost::spirit::info, boost::spirit::info> >' required here
// -*- C++ -*-
//===-------_------------ constexpr_char_traits ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
SYMBOL REMOVED: _Unwind_Resume@GCC_3.0
{'type': 'FUNC', 'name': '_Unwind_Resume@GCC_3.0'}
SYMBOL REMOVED: _Unwind_DeleteException@GCC_3.0
{'type': 'FUNC', 'name': '_Unwind_DeleteException@GCC_3.0'}
SYMBOL REMOVED: _Unwind_RaiseException@GCC_3.0
{'type': 'FUNC', 'name': '_Unwind_RaiseException@GCC_3.0'}
SYMBOL REMOVED: _Unwind_GetIP@GCC_3.0
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: c++98, c++03
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: c++98, c++03