aboutsummaryrefslogtreecommitdiff
path: root/clang/test
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-12-08 00:36:27 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-12-08 00:38:42 +0300
commitc79f94d85121347d28f894d837f173f90f368e92 (patch)
treee949d452a36a934f5629dd97643aa8fd75657246 /clang/test
parent09a05f5dcb7946494828b00d767198341ff78604 (diff)
downloadllvm-c79f94d85121347d28f894d837f173f90f368e92.zip
llvm-c79f94d85121347d28f894d837f173f90f368e92.tar.gz
llvm-c79f94d85121347d28f894d837f173f90f368e92.tar.bz2
[clang][NFC] Fill in historical data on when C++ DRs 700-1999 were fixed
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/drs/dr11xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr12xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr13xx.cpp6
-rw-r--r--clang/test/CXX/drs/dr14xx.cpp4
-rw-r--r--clang/test/CXX/drs/dr15xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr16xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr18xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr19xx.cpp8
-rw-r--r--clang/test/CXX/drs/dr25xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr412.cpp2
-rw-r--r--clang/test/CXX/drs/dr8xx.cpp2
-rw-r--r--clang/test/CXX/drs/dr9xx.cpp2
12 files changed, 18 insertions, 18 deletions
diff --git a/clang/test/CXX/drs/dr11xx.cpp b/clang/test/CXX/drs/dr11xx.cpp
index 23756ff..2e35535 100644
--- a/clang/test/CXX/drs/dr11xx.cpp
+++ b/clang/test/CXX/drs/dr11xx.cpp
@@ -4,7 +4,7 @@
// RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++2a %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
-namespace dr1111 { // dr1111: yes
+namespace dr1111 { // dr1111: 3.2
namespace example1 {
template <typename> struct set;
diff --git a/clang/test/CXX/drs/dr12xx.cpp b/clang/test/CXX/drs/dr12xx.cpp
index c23a515..339712b 100644
--- a/clang/test/CXX/drs/dr12xx.cpp
+++ b/clang/test/CXX/drs/dr12xx.cpp
@@ -81,7 +81,7 @@ void g() {
#endif
#if __cplusplus >= 201103L
-namespace dr1227 { // dr1227: yes
+namespace dr1227 { // dr1227: 3.0
template <class T> struct A { using X = typename T::X; }; // expected-error {{type 'int' cannot be used prior to '::' because it has no members}}
template <class T> typename T::X f(typename A<T>::X);
template <class T> void f(...) { }
diff --git a/clang/test/CXX/drs/dr13xx.cpp b/clang/test/CXX/drs/dr13xx.cpp
index 3510695..abee100 100644
--- a/clang/test/CXX/drs/dr13xx.cpp
+++ b/clang/test/CXX/drs/dr13xx.cpp
@@ -14,7 +14,7 @@ namespace std {
}
#if __cplusplus >= 201103L
-namespace dr1305 { // dr1305: yes
+namespace dr1305 { // dr1305: 3.0
struct Incomplete; // expected-note {{forward declaration of 'dr1305::Incomplete'}}
struct Complete {};
@@ -297,7 +297,7 @@ namespace dr1346 { // dr1346: 3.5
#endif
}
-namespace dr1347 { // dr1347: yes
+namespace dr1347 { // dr1347: 3.1
auto x = 5, *y = &x; // expected-error 0-1{{extension}}
auto z = y, *q = y; // expected-error {{'auto' deduced as 'int *' in declaration of 'z' and deduced as 'int' in declaration of 'q'}} expected-error 0-1{{extension}}
#if __cplusplus >= 201103L
@@ -306,7 +306,7 @@ namespace dr1347 { // dr1347: yes
#endif
}
-namespace dr1358 { // dr1358: yes
+namespace dr1358 { // dr1358: 3.1
#if __cplusplus >= 201103L
struct Lit { constexpr operator int() const { return 0; } };
struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}}
diff --git a/clang/test/CXX/drs/dr14xx.cpp b/clang/test/CXX/drs/dr14xx.cpp
index ea41a03..7dd7da9 100644
--- a/clang/test/CXX/drs/dr14xx.cpp
+++ b/clang/test/CXX/drs/dr14xx.cpp
@@ -484,11 +484,11 @@ namespace dr1467 { // dr1467: 3.7 c++11
#endif
} // dr1467
-namespace dr1479 { // dr1479: yes
+namespace dr1479 { // dr1479: 3.1
int operator"" _a(const char*, std::size_t = 0); // expected-error {{literal operator cannot have a default argument}}
}
-namespace dr1482 { // dr1482: yes
+namespace dr1482 { // dr1482: 3.0
// NB: sup 2516, test reused there
#if __cplusplus >= 201103L
template <typename T> struct S {
diff --git a/clang/test/CXX/drs/dr15xx.cpp b/clang/test/CXX/drs/dr15xx.cpp
index c588891..a53b146 100644
--- a/clang/test/CXX/drs/dr15xx.cpp
+++ b/clang/test/CXX/drs/dr15xx.cpp
@@ -233,7 +233,7 @@ namespace std_example {
#endif // __cplusplus >= 201103L
}
-namespace dr1550 { // dr1550: yes
+namespace dr1550 { // dr1550: 3.4
int f(bool b, int n) {
return (b ? (throw 0) : n) + (b ? n : (throw 0));
}
diff --git a/clang/test/CXX/drs/dr16xx.cpp b/clang/test/CXX/drs/dr16xx.cpp
index 463353d..cbf0b48 100644
--- a/clang/test/CXX/drs/dr16xx.cpp
+++ b/clang/test/CXX/drs/dr16xx.cpp
@@ -68,7 +68,7 @@ namespace dr1631 { // dr1631: 3.7
#endif
}
-namespace dr1638 { // dr1638: yes
+namespace dr1638 { // dr1638: 3.1
#if __cplusplus >= 201103L
template<typename T> struct A {
enum class E; // expected-note {{previous}}
diff --git a/clang/test/CXX/drs/dr18xx.cpp b/clang/test/CXX/drs/dr18xx.cpp
index 7ac2673..49c1167 100644
--- a/clang/test/CXX/drs/dr18xx.cpp
+++ b/clang/test/CXX/drs/dr18xx.cpp
@@ -62,7 +62,7 @@ namespace dr1815 { // dr1815: no
#endif
}
-namespace dr1821 { // dr1821: yes
+namespace dr1821 { // dr1821: 2.9
struct A {
template <typename> struct B {
void f();
diff --git a/clang/test/CXX/drs/dr19xx.cpp b/clang/test/CXX/drs/dr19xx.cpp
index b15be76..73aa20c 100644
--- a/clang/test/CXX/drs/dr19xx.cpp
+++ b/clang/test/CXX/drs/dr19xx.cpp
@@ -64,7 +64,7 @@ namespace dr1903 {
}
}
-namespace dr1909 { // dr1909: yes
+namespace dr1909 { // dr1909: 3.7
struct A {
template<typename T> struct A {}; // expected-error {{member 'A' has the same name as its class}}
};
@@ -79,7 +79,7 @@ namespace dr1909 { // dr1909: yes
};
}
-namespace dr1940 { // dr1940: yes
+namespace dr1940 { // dr1940: 3.5
#if __cplusplus >= 201103L
static union {
static_assert(true, ""); // ok
@@ -119,7 +119,7 @@ derived d2(42, 9);
#endif
}
-namespace dr1947 { // dr1947: yes
+namespace dr1947 { // dr1947: 3.5
#if __cplusplus >= 201402L
unsigned o = 0'01; // ok
unsigned b = 0b'01; // expected-error {{invalid digit 'b' in octal constant}}
@@ -128,7 +128,7 @@ unsigned x = 0x'01; // expected-error {{invalid suffix 'x'01' on integer constan
}
#if __cplusplus >= 201103L
-// dr1948: yes
+// dr1948: 3.5
// FIXME: This diagnostic could be improved.
void *operator new(__SIZE_TYPE__) noexcept { return nullptr; } // expected-error{{exception specification in declaration does not match previous declaration}}
#endif
diff --git a/clang/test/CXX/drs/dr25xx.cpp b/clang/test/CXX/drs/dr25xx.cpp
index 3644e4c..0204eca 100644
--- a/clang/test/CXX/drs/dr25xx.cpp
+++ b/clang/test/CXX/drs/dr25xx.cpp
@@ -10,7 +10,7 @@
// expected-no-diagnostics
#endif
-namespace dr2516 { // dr2516: yes
+namespace dr2516 { // dr2516: 3.0
// NB: reusing 1482 test
#if __cplusplus >= 201103L
template <typename T> struct S {
diff --git a/clang/test/CXX/drs/dr412.cpp b/clang/test/CXX/drs/dr412.cpp
index 27bc7e5..af385ff 100644
--- a/clang/test/CXX/drs/dr412.cpp
+++ b/clang/test/CXX/drs/dr412.cpp
@@ -3,7 +3,7 @@
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
-// dr412: yes
+// dr412: 3.4
// lwg404: yes
// lwg2340: yes
diff --git a/clang/test/CXX/drs/dr8xx.cpp b/clang/test/CXX/drs/dr8xx.cpp
index d79430f..11948d0 100644
--- a/clang/test/CXX/drs/dr8xx.cpp
+++ b/clang/test/CXX/drs/dr8xx.cpp
@@ -8,7 +8,7 @@
// expected-no-diagnostics
-namespace dr873 { // dr873: yes
+namespace dr873 { // dr873: 3.0
#if __cplusplus >= 201103L
template <typename T> void f(T &&);
template <> void f(int &) {} // #1
diff --git a/clang/test/CXX/drs/dr9xx.cpp b/clang/test/CXX/drs/dr9xx.cpp
index fb13ef2..e526582 100644
--- a/clang/test/CXX/drs/dr9xx.cpp
+++ b/clang/test/CXX/drs/dr9xx.cpp
@@ -43,7 +43,7 @@ namespace dr948 { // dr948: 3.7
#endif
}
-namespace dr952 { // dr952: yes
+namespace dr952 { // dr952: 2.8
namespace example1 {
struct A {
typedef int I; // #dr952-typedef-decl