Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// appear to provide that behavior too.

#include <cstddef>

#include "test_macros.h"

using PtrdiffT = ::ptrdiff_t;
Expand Down
4 changes: 4 additions & 0 deletions libcxx/test/extensions/clang/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# Only libc++ supports clang-specific extensions
if "stdlib=libc++" not in config.available_features:
config.unsupported = True
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# ===----------------------------------------------------------------------===##

# Test that all headers define the _LIBCPP_VERSION macro.
# Test that all public headers define the _LIBCPP_VERSION macro.

# RUN: %{python} %s %{libcxx-dir}/utils

Expand Down
3 changes: 3 additions & 0 deletions libcxx/test/extensions/libcxx/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

if "stdlib=libc++" not in config.available_features:
config.unsupported = True
5 changes: 0 additions & 5 deletions libcxx/test/selftest/lit.local.cfg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
{lit_header_restrictions.get(header, '')}
{lit_header_undeprecations.get(header, '')}

// We're using compiler-specific flags in this test
// REQUIRES: (gcc || clang)

// RUN: %{{cxx}} -c %s -o %t.first.o %{{flags}} %{{compile_flags}}
// RUN: %{{cxx}} -c %s -o %t.second.o -DWITH_MAIN %{{flags}} %{{compile_flags}}
// RUN: %{{cxx}} -o %t.exe %t.first.o %t.second.o %{{flags}} %{{link_flags}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
//--- {header}.compile.pass.cpp
// UNSUPPORTED: FROZEN-CXX03-HEADERS-FIXME

// TODO: This is currently a libc++-specific way of testing the includes, but is a requirement for all implementation
// REQUIRES: stdlib=libc++

{lit_header_restrictions.get(header, '')}
{lit_header_undeprecations.get(header, '')}

Expand Down
Loading