mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 23:30:38 +08:00
[libcxx] [test] Fix URLs in comments and make them HTTPS. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@310156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
// notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
|
// notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
|
||||||
|
|
||||||
// Test that this function works with threads that were not created by
|
// Test that this function works with threads that were not created by
|
||||||
// std::thread. See http://llvm.org/PR30202.
|
// std::thread. See: https://bugs.llvm.org/show_bug.cgi?id=30202
|
||||||
|
|
||||||
|
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
|
@@ -95,7 +95,7 @@ int main()
|
|||||||
assert((*i2).position() == 0);
|
assert((*i2).position() == 0);
|
||||||
assert((*i2).str() == "555-1234");
|
assert((*i2).str() == "555-1234");
|
||||||
}
|
}
|
||||||
{ // http://llvm.org/PR33681
|
{ // https://bugs.llvm.org/show_bug.cgi?id=33681
|
||||||
std::regex rex(".*");
|
std::regex rex(".*");
|
||||||
const char foo[] = "foo";
|
const char foo[] = "foo";
|
||||||
// The -1 is because we don't want the implicit null from the array.
|
// The -1 is because we don't want the implicit null from the array.
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
// async(launch policy, F&& f, Args&&... args);
|
// async(launch policy, F&& f, Args&&... args);
|
||||||
|
|
||||||
// This test is designed to cause and allow TSAN to detect the race condition
|
// This test is designed to cause and allow TSAN to detect the race condition
|
||||||
// reported in PR23293. (http://llvm.org/PR23293).
|
// reported in PR23293: https://bugs.llvm.org/show_bug.cgi?id=23293
|
||||||
|
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
@@ -587,7 +587,7 @@ void call_operator_noexcept_test()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void test_lwg2767() {
|
void test_lwg2767() {
|
||||||
// See http://wg21.link/LWG2767
|
// See https://cplusplus.github.io/LWG/lwg-defects.html#2767
|
||||||
struct Abstract { virtual void f() const = 0; };
|
struct Abstract { virtual void f() const = 0; };
|
||||||
struct Derived : public Abstract { void f() const {} };
|
struct Derived : public Abstract { void f() const {} };
|
||||||
struct F { bool operator()(Abstract&&) { return false; } };
|
struct F { bool operator()(Abstract&&) { return false; } };
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
// Hashing a struct w/o a defined hash should *not* fail, but it should
|
// Hashing a struct w/o a defined hash should *not* fail, but it should
|
||||||
// create a type that is not constructible and not callable.
|
// create a type that is not constructible and not callable.
|
||||||
// See also: http://cplusplus.github.io/LWG/lwg-active.html#2543
|
// See also: https://cplusplus.github.io/LWG/lwg-defects.html#2543
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@@ -84,7 +84,7 @@ int main()
|
|||||||
assert(a1.use_count() == 1);
|
assert(a1.use_count() == 1);
|
||||||
}
|
}
|
||||||
// Test LWG issue 2529. Only reset '__weak_ptr_' when it's already expired.
|
// Test LWG issue 2529. Only reset '__weak_ptr_' when it's already expired.
|
||||||
// http://cplusplus.github.io/LWG/lwg-active.html#2529.
|
// https://cplusplus.github.io/LWG/lwg-defects.html#2529
|
||||||
// Test two different ways:
|
// Test two different ways:
|
||||||
// * Using 'weak_from_this().expired()' in C++17.
|
// * Using 'weak_from_this().expired()' in C++17.
|
||||||
// * Using 'shared_from_this()' in all dialects.
|
// * Using 'shared_from_this()' in all dialects.
|
||||||
|
@@ -29,5 +29,5 @@ int main () {
|
|||||||
}
|
}
|
||||||
// Smart pointers of type 'T[N]' are not tested here since they are not
|
// Smart pointers of type 'T[N]' are not tested here since they are not
|
||||||
// supported by the standard nor by libc++'s implementation.
|
// supported by the standard nor by libc++'s implementation.
|
||||||
// See http://reviews.llvm.org/D21320 for more information.
|
// See https://reviews.llvm.org/D21320 for more information.
|
||||||
}
|
}
|
||||||
|
@@ -300,7 +300,7 @@ void test_exceptions() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// See http://llvm.org/PR31916
|
// See https://bugs.llvm.org/show_bug.cgi?id=31916
|
||||||
void test_caller_accepts_nonconst() {
|
void test_caller_accepts_nonconst() {
|
||||||
struct A {};
|
struct A {};
|
||||||
struct Visitor {
|
struct Visitor {
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
// locale names
|
// locale names
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// WARNING: Windows does not support UTF-8 codepages.
|
// WARNING: Windows does not support UTF-8 codepages.
|
||||||
// Locales are "converted" using http://docs.moodle.org/dev/Table_of_locales
|
// Locales are "converted" using https://docs.moodle.org/dev/Table_of_locales
|
||||||
#define LOCALE_en_US "en-US"
|
#define LOCALE_en_US "en-US"
|
||||||
#define LOCALE_en_US_UTF_8 "en-US"
|
#define LOCALE_en_US_UTF_8 "en-US"
|
||||||
#define LOCALE_cs_CZ_ISO8859_2 "cs-CZ"
|
#define LOCALE_cs_CZ_ISO8859_2 "cs-CZ"
|
||||||
|
Reference in New Issue
Block a user