Skip to content

Instantly share code, notes, and snippets.

View EricWF's full-sized avatar

Eric EricWF

View GitHub Profile
diff --git a/test/libcxx/containers/unord/unord.set/insert_dup_alloc.pass.cpp b/test/libcxx/containers/unord/unord.set/insert_dup_alloc.pass.cpp
deleted file mode 100644
index 76ceafe..0000000
--- a/test/libcxx/containers/unord/unord.set/insert_dup_alloc.pass.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
@EricWF
EricWF / test_case.cpp
Created April 12, 2016 00:41
Tuple test case
//===----------------------------------------------------------------------===//
//
// 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 <tuple>
@EricWF
EricWF / test_case.cpp
Created April 12, 2016 00:41
Tuple test case
//===----------------------------------------------------------------------===//
//
// 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 <tuple>
@EricWF
EricWF / test_case.cpp
Created April 12, 2016 00:41
Tuple test case
//===----------------------------------------------------------------------===//
//
// 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 <tuple>

Otherwise the instantiation hash shall:

  • not be a function object type (20.12)
  • not satisfy the requiriments of 'DefaultConstructible' (Table 19), 'CopyConstructible' (Table 21), 'CopyAssignable' (Table 23), nor 'Destructible' (17.6.3.1).
@EricWF
EricWF / move_decls.patch
Created April 20, 2016 03:35
Updated patch
diff --git a/include/complex b/include/complex
index 565e111..f56138f 100644
--- a/include/complex
+++ b/include/complex
@@ -1,1517 +1,1523 @@
// -*- C++ -*-
//===--------------------------- complex ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
#pragma GCC visibility push(hidden)
//#define _LIBCPP_TYPE_VIS __attribute__((visibility("default")))
//#define _LIBCPP_TYPE_VIS_ONLY __attribute__((type_visibility("default")))
#include <locale>
#pragma GCC visibility pop
int main() {
using T = std::moneypunct_byname<char>;
std::locale loc = std::locale("");
auto& f = std::use_facet<T>(loc);
@EricWF
EricWF / test.pass.cpp
Created April 29, 2016 00:13
reproducer
#include <memory>
struct Foo {};
using FooFn = Foo*();
using FooFnPtr = Foo*(*)();
using FooDel = void (*)(FooFnPtr);
static_assert(std::is_same<FooFn*, FooFnPtr>::value, "");
void del(FooFnPtr) {}
Foo* fun() {return nullptr; }
//===----------------------------------------------------------------------===//
//
// 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