CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
94 lines
4.5 KiB
C++
94 lines
4.5 KiB
C++
// RUN: %clang_cc1 -std=c++98 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98-14
|
|
// RUN: %clang_cc1 -std=c++11 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98-14,cxx11-17,since-cxx11
|
|
// RUN: %clang_cc1 -std=c++14 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98-14,cxx14-17,cxx11-17,since-cxx11,since-cxx14
|
|
// RUN: %clang_cc1 -std=c++17 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx14-17,cxx11-17,since-cxx11,since-cxx14,since-cxx17
|
|
// RUN: %clang_cc1 -std=c++20 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
// RUN: %clang_cc1 -std=c++23 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
// RUN: %clang_cc1 -std=c++2c %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
|
|
// RUN: %clang_cc1 -std=c++98 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,cxx98-14
|
|
// RUN: %clang_cc1 -std=c++11 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,cxx98-14,cxx11-17,since-cxx11
|
|
// RUN: %clang_cc1 -std=c++14 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,cxx98-14,cxx14-17,cxx11-17,since-cxx11,since-cxx14
|
|
// RUN: %clang_cc1 -std=c++17 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,cxx14-17,cxx11-17,since-cxx11,since-cxx14,since-cxx17
|
|
// RUN: %clang_cc1 -std=c++20 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
// RUN: %clang_cc1 -std=c++23 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
// RUN: %clang_cc1 -std=c++2c %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20
|
|
|
|
// cxx98-14-no-diagnostics
|
|
|
|
namespace cwg3106 { // cwg3106: 2.7
|
|
#if __cplusplus >= 201103L
|
|
const char str[9] = R"(\u{1234})";
|
|
#endif
|
|
} // namespace cwg3106
|
|
|
|
namespace cwg3128 { // cwg3128: 2.7
|
|
#if __cplusplus >= 201103L
|
|
void f();
|
|
static_assert(noexcept(noexcept(f())), "");
|
|
#endif
|
|
} // namespace cwg3128
|
|
|
|
namespace cwg3135 { // cwg3135: 23
|
|
#if __cplusplus >= 201703L
|
|
struct Pinned {
|
|
Pinned(const Pinned&) = delete; // #cwg3135-pinned-ctor
|
|
Pinned& operator=(const Pinned&) = delete;
|
|
};
|
|
|
|
struct Source {
|
|
operator Pinned&&() const;
|
|
|
|
template<int>
|
|
Source get() noexcept;
|
|
};
|
|
} // namespace cwg3135
|
|
|
|
namespace std {
|
|
template<typename> struct tuple_size;
|
|
template<int, typename> struct tuple_element;
|
|
|
|
template<>
|
|
struct tuple_size<cwg3135::Source> {
|
|
static constexpr int value = 1;
|
|
};
|
|
|
|
template<>
|
|
struct tuple_element<0, cwg3135::Source> { using type = cwg3135::Pinned; };
|
|
} // namespace std
|
|
|
|
namespace cwg3135 {
|
|
// CWG3135: `x` is of type Pinned rather than Pinned&&.
|
|
// This leads to the deleted copy ctor being called.
|
|
auto [x] = Source{};
|
|
// since-cxx17-error@-1 {{initializing binding of type 'Pinned' invokes deleted constructor}}
|
|
// since-cxx17-note@-2 {{in implicit initialization of binding declaration 'x'}}
|
|
// since-cxx17-note@#cwg3135-pinned-ctor {{'Pinned' has been explicitly marked deleted here}}
|
|
#endif
|
|
} // namespace cwg3135
|
|
|
|
namespace cwg3151 { // cwg3151: 2.7
|
|
#if __cplusplus >= 201402L
|
|
auto lambda = []{};
|
|
struct S : decltype(lambda) {};
|
|
static_assert(!__is_final(decltype(lambda)), "");
|
|
#endif
|
|
} // namespace cwg3151
|
|
|
|
namespace cwg3156 { // cwg3156: 3.5
|
|
#if __cplusplus >= 202002L
|
|
struct C { // #cwg3156-C
|
|
C(int) = delete; // #cwg3156-C-int
|
|
C(){};
|
|
};
|
|
|
|
decltype([b = C(3)](){ return 4; }()) x;
|
|
// since-cxx20-error@-1 {{functional-style cast from 'int' to 'C' uses deleted function}}
|
|
// since-cxx20-note@#cwg3156-C-int {{candidate constructor has been explicitly deleted}}
|
|
// since-cxx20-note@#cwg3156-C {{candidate constructor (the implicit copy constructor)}}
|
|
// since-cxx20-note@#cwg3156-C {{candidate constructor (the implicit move constructor)}}
|
|
#endif
|
|
} // namespace cwg3156
|
|
|
|
// cwg3172: na
|