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
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/cwg12xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace cwg1213 { // cwg1213: 7
}

#if __cplusplus >= 201103L
namespace cwg1223 { // cwg1223: 17 drafting 2023-05-12
namespace cwg1223 { // cwg1223: 17
struct M;
template <typename T>
struct V;
Expand Down
25 changes: 15 additions & 10 deletions clang/test/CXX/drs/cwg28xx.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RUN: %clang_cc1 -std=c++98 -pedantic-errors -verify=expected,cxx98 %s
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected %s
// RUN: %clang_cc1 -std=c++14 -pedantic-errors -verify=expected %s
// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=expected %s
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=expected,since-cxx20 %s
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected,since-cxx20,since-cxx23 %s
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected,cxx11-23 %s
// RUN: %clang_cc1 -std=c++14 -pedantic-errors -verify=expected,cxx11-23 %s
// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=expected,cxx11-23 %s
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=expected,cxx11-23,since-cxx20 %s
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected,cxx11-23,since-cxx20,since-cxx23 %s
// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=expected,since-cxx20,since-cxx23,since-cxx26 %s


Expand Down Expand Up @@ -47,12 +47,17 @@ void f() {
#endif
} // namespace cwg2813

namespace cwg2819 { // cwg2819: 19 tentatively ready 2023-12-01

#if __cpp_constexpr >= 202306L
namespace cwg2819 { // cwg2819: 19 c++26
#if __cplusplus >= 201103L
// CWG 2024-04-19: This issue is not a DR.
constexpr void* p = nullptr;
constexpr int* q = static_cast<int*>(p);
static_assert(q == nullptr);
constexpr int* q = static_cast<int*>(p); // #cwg2819-q
// cxx11-23-error@-1 {{constexpr variable 'q' must be initialized by a constant expression}}
// cxx11-23-note@-2 {{cast from 'void *' is not allowed in a constant expression}}
static_assert(q == nullptr, "");
// cxx11-23-error@-1 {{static assertion expression is not an integral constant expression}}
// cxx11-23-note@-2 {{initializer of 'q' is not a constant expression}}
// cxx11-23-note@#cwg2819-q {{declared here}}
#endif
}

Expand Down
6 changes: 3 additions & 3 deletions clang/test/CXX/drs/cwg29xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected %s
// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=expected %s

namespace cwg2913 { // cwg2913: 20 tentatively ready 2024-08-16
namespace cwg2913 { // cwg2913: 20

#if __cplusplus >= 202002L

Expand All @@ -26,7 +26,7 @@ R(T, T) requires true -> R<T>; // expected-error {{expected function body after

} // namespace cwg2913

namespace cwg2915 { // cwg2915: 20 tentatively ready 2024-08-16
namespace cwg2915 { // cwg2915: 20
#if __cplusplus >= 202302L
struct A {
void f(this void); // expected-error {{explicit object parameter cannot have 'void' type}}
Expand Down Expand Up @@ -61,7 +61,7 @@ void *operator new(std::size_t, void *p) { return p; }
void* operator new[] (std::size_t, void* p) {return p;}


namespace cwg2922 { // cwg2922: 20 tentatively ready 2024-07-10
namespace cwg2922 { // cwg2922: 20
union U { int a, b; };
constexpr U nondeterministic(bool i) {
if(i) {
Expand Down
Loading
Loading