Skip to content

Instantly share code, notes, and snippets.

View EricWF's full-sized avatar

Eric EricWF

View GitHub Profile
@EricWF
EricWF / example.cpp
Created October 9, 2017 18:17
Benchmark Comparisons
static void BM_Foo(benchmark::State& St) {
[...]
}
static void BM_Bar(benchmark::State& st) {
[...]
}
// Option #1: The BENCHMARK macro could return an identifier that
// could be used in comparison API's to setup comparison tests.
#include <experimental/coroutine>
#include <iostream>
#include <memory>
#include <optional>
#include <utility>
#include <variant>
using namespace std::experimental::coroutines_v1;
template <class T>
class A {
class DecodingState;
class B;
};
template <class> struct ReturnTypeHelperImp;
template <class S, class R> struct ReturnTypeHelperImp<R(S::*)()> {
using type = R;
};
template <class T> using ReturnTypeHelper = typename ReturnTypeHelperImp<T>::type;
template <class ...Locks>
struct scoped_lock;
template <>
struct scoped_lock<> {
explicit scoped_lock() {}
};
template <class ...Locks>
This file has been truncated, but you can view the full file.
# 1 "<built-in>"
# 1 "dialect_support.sh.cpp"
// -*- 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.
//
[ 6%] Building CXX object CMakeFiles/test.header.range.v3.view.zip.hpp.dir/headers/range/v3/view/zip.cpp.o
In file included from /home/eric/workspace/build-range/headers/range/v3/view/zip.cpp:3:
In file included from /home/eric/workspace/range-v3/include/range/v3/view/zip.hpp:26:
/home/eric/workspace/range-v3/include/range/v3/view/zip_with.hpp:47:22: error: unused function template 'operator()' [-Werror,-Wunused-template]
bool operator()(T const &t, U const &u) const
^
/home/eric/workspace/range-v3/include/range/v3/view/zip_with.hpp:56:22: error: unused function template 'operator()' [-Werror,-Wunused-template]
void operator()(T & t) const
^
/home/eric/workspace/range-v3/include/range/v3/view/zip_with.hpp:65:22: error: unused function template 'operator()' [-Werror,-Wunused-template]
###############################################################################
# Appveyor configuration file for LLVM
# -----------------------------------------------------------------------------
# This appveyor.yml is for the LLVM repository (Example: github.com/llvm-mirror/llvm)
# It builds LLVM, Clang, Clang tools extra, LLD.
###############################################################################
version: '{build}'
shallow_clone: true
/***
*excptptr.cpp - The exception_ptr implementation and everything associated with it.
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* The exception_ptr implementation and everything associated with it.
****/
#ifndef _VCRT_ALLOW_INTERNALS
#include <exception>
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <cassert>
int main() {
std::exception_ptr p2;
try {
throw 42;
Testing Time: 2469.81s
********************
Unexpected Passing Tests (1):
libc++ :: std/strings/c.strings/cuchar.pass.cpp
********************
Failing Tests (297):
libc++ :: libcxx/atomics/diagnose_invalid_memory_order.fail.cpp
libc++ :: libcxx/experimental/memory/memory.resource.global/global_memory_resource_lifetime.pass.cpp
libc++ :: libcxx/experimental/memory/memory.resource.global/new_delete_resource_lifetime.pass.cpp
libc++ :: libcxx/language.support/support.dynamic/new_faligned_allocation.sh.cpp