Skip to content

Instantly share code, notes, and snippets.

View EricWF's full-sized avatar

Eric EricWF

View GitHub Profile
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <fcntl.h> /* values for fchmodat */
#include <limits>
#include <ctime>
#include <cassert>
#include <fstream>
diff --git a/include/llvm/module.modulemap b/include/llvm/module.modulemap
index a86bc7e..f85e534 100644
--- a/include/llvm/module.modulemap
+++ b/include/llvm/module.modulemap
@@ -38,7 +38,17 @@ module LLVM_Backend {
}
module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
-module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
+module LLVM_Config {
diff --git a/include/variant b/include/variant
index 6ecc193..8969790 100644
--- a/include/variant
+++ b/include/variant
@@ -1071,7 +1071,16 @@ using __best_match_t = typename result_of_t<__overload<_Types...>(_Tp&&)>::type;
} // __variant_detail
template <class... _Types>
-class _LIBCPP_TYPE_VIS_ONLY variant {
+class _LIBCPP_TYPE_VIS_ONLY variant :
Compilation failed unexpectedly!
********************
Testing Time: 1121.68s
********************
Unexpected Passing Tests (1):
libc++ :: std/strings/c.strings/cuchar.pass.cpp
********************
Failing Tests (886):
libc++ :: std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp
@EricWF
EricWF / Instructions.md
Last active April 7, 2022 03:06
Running libc++'s test suite.
  1. Checkout the LLVM sources somewhere persistent, for example /opt/llvm-src.
git clone https://llvm.org/git/llvm.git /opt/llvm-src
  1. Create an permanent alias to the LIT test driver. This alias will be how you invoke the tests.

//===-------------- thread_local_destruction_order.pass.cpp ---------------===//
//
// 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
comment_char %
escape_char /
%
% Russian Language Locale for Russia
% Source: RAP
% Address: Sankt Jo//rgens Alle 8
% DK-1615 Ko//benhavn V, Danmark
% Contact: Keld Simonsen
% Email: Keld.Simonsen@dkuug.dk
% Tel: +45 - 31226543
diff --git a/src/cxa_thread_atexit.cpp b/src/cxa_thread_atexit.cpp
index 3ca6c16..7aea753 100644
--- a/src/cxa_thread_atexit.cpp
+++ b/src/cxa_thread_atexit.cpp
@@ -1,157 +1,137 @@
//===----------------------- cxa_thread_atexit.cpp ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
template<typename... Elements> struct variadic_holder {};
template<typename Holder1, typename Holder2> struct variadic_concat;
template<template<class...> class Holder1, typename... Elements1, template <class...> class Holder2, typename... Elements2>
struct variadic_concat<Holder1<Elements1...>, Holder2<Elements2...>>
{};
#!/usr/bin/env bash
export SRC_ROOT= path/to/llvm # SET ME
export BUILD = TODO # SET ME
# SET ME. /usr/local will safely "replace" the system installation. Prefixes like /opt/llvm-tot are safer to use
export INSTALL_PREFIX= /usr/local
# Checkout the LLVM tree correctly
git clone --depth=1 http://llvm.org/git/llvm.git $SRC_ROOT
git clone --depth=1 http://llvm.org/git/clang.git $SRC_ROOT/tools/clang