Skip to content

Commit ed128c7

Browse files
committed
[clang][NFC] Replace dr with cwg in DR test suite
This patch is breaking `dr` to `cwg` equivalence in our terminology, making room for tests for LWG issues that concern compiler intrinsics.
1 parent 79dca25 commit ed128c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3339
-3339
lines changed

clang/test/CXX/drs/dr118.cpp renamed to clang/test/CXX/drs/cwg118.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple x86_64-linux -std=c++14 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
44
// RUN: %clang_cc1 -triple x86_64-linux -std=c++1z %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
55

6-
// dr118: yes
6+
// cwg118: yes
77

88
struct S {
99
virtual void f();

clang/test/CXX/drs/dr124.cpp renamed to clang/test/CXX/drs/cwg124.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define NOTHROW noexcept(true)
1313
#endif
1414

15-
namespace dr124 { // dr124: 2.7
15+
namespace cwg124 { // cwg124: 2.7
1616

1717
extern void full_expr_fence() NOTHROW;
1818

@@ -32,20 +32,20 @@ void f() {
3232
full_expr_fence();
3333
}
3434

35-
// CHECK-LABEL: define {{.*}} void @dr124::f()()
36-
// CHECK: call void @dr124::full_expr_fence()
35+
// CHECK-LABEL: define {{.*}} void @cwg124::f()()
36+
// CHECK: call void @cwg124::full_expr_fence()
3737
// CHECK: br label %arrayctor.loop
3838
// CHECK-LABEL: arrayctor.loop:
39-
// CHECK: call void @dr124::A::A()
40-
// CHECK: call void @dr124::B::B(dr124::A)
41-
// CHECK: call void @dr124::A::~A()
39+
// CHECK: call void @cwg124::A::A()
40+
// CHECK: call void @cwg124::B::B(cwg124::A)
41+
// CHECK: call void @cwg124::A::~A()
4242
// CHECK: br {{.*}}, label %arrayctor.cont, label %arrayctor.loop
4343
// CHECK-LABEL: arrayctor.cont:
44-
// CHECK: call void @dr124::full_expr_fence()
44+
// CHECK: call void @cwg124::full_expr_fence()
4545
// CHECK: br label %arraydestroy.body
4646
// CHECK-LABEL: arraydestroy.body:
47-
// CHECK: call void @dr124::B::~B()
47+
// CHECK: call void @cwg124::B::~B()
4848
// CHECK-LABEL: }
4949

5050

51-
} // namespace dr124
51+
} // namespace cwg124

clang/test/CXX/drs/dr158.cpp renamed to clang/test/CXX/drs/cwg158.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple x86_64-linux -std=c++14 %s -O3 -disable-llvm-passes -pedantic-errors -emit-llvm -o - | FileCheck %s
44
// RUN: %clang_cc1 -triple x86_64-linux -std=c++1z %s -O3 -disable-llvm-passes -pedantic-errors -emit-llvm -o - | FileCheck %s
55

6-
// dr158: yes
6+
// cwg158: yes
77

88
// CHECK-LABEL: define {{.*}} @_Z1f
99
const int *f(const int * const *p, int **q) {

clang/test/CXX/drs/dr1748.cpp renamed to clang/test/CXX/drs/cwg1748.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -std=c++14 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s
44
// RUN: %clang_cc1 -std=c++1z %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s
55

6-
// dr1748: 3.7
6+
// cwg1748: 3.7
77

88
// FIXME: __SIZE_TYPE__ expands to 'long long' on some targets.
99
__extension__ typedef __SIZE_TYPE__ size_t;

clang/test/CXX/drs/dr177x.cpp renamed to clang/test/CXX/drs/cwg177x.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// RUN: %clang_cc1 -std=c++1z %s -fexceptions -fcxx-exceptions -pedantic-errors -ast-dump | FileCheck %s --check-prefixes=CHECK,CXX11,CXX14
55
// RUN: %clang_cc1 -std=c++1z %s -fexceptions -fcxx-exceptions -pedantic-errors -triple i386-windows-pc -ast-dump | FileCheck %s --check-prefixes=CHECK,CXX11,CXX14
66

7-
namespace dr1772 { // dr1772: 14
7+
namespace cwg1772 { // cwg1772: 14
88
// __func__ in a lambda should name operator(), not the containing function.
9-
// CHECK: NamespaceDecl{{.+}}dr1772
9+
// CHECK: NamespaceDecl{{.+}}cwg1772
1010
#if __cplusplus >= 201103L
1111
auto x = []() { __func__; };
1212
// CXX11: LambdaExpr
@@ -30,10 +30,10 @@ namespace dr1772 { // dr1772: 14
3030
#endif // __cplusplus >= 201103L
3131
}
3232

33-
namespace dr1779 { // dr1779: 14
33+
namespace cwg1779 { // cwg1779: 14
3434
// __func__ in a function template, member function template, or generic
3535
// lambda should have a dependent type.
36-
// CHECK: NamespaceDecl{{.+}}dr1779
36+
// CHECK: NamespaceDecl{{.+}}cwg1779
3737

3838
template<typename T>
3939
void FuncTemplate() {

clang/test/CXX/drs/dr1807.cpp renamed to clang/test/CXX/drs/cwg1807.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,SINCE-CXX11
77
// RUN: %clang_cc1 -std=c++2c %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,SINCE-CXX11
88

9-
namespace dr1807 { // dr1807: 3.0
9+
namespace cwg1807 { // cwg1807: 3.0
1010
struct S {
1111
S() {}
1212
~S() {}
@@ -17,12 +17,12 @@ void f() {
1717
}
1818
}
1919

20-
// CHECK-LABEL: define dso_local void @dr1807::f()
21-
// CHECK: invoke void @dr1807::S::S(){{.+}}
20+
// CHECK-LABEL: define dso_local void @cwg1807::f()
21+
// CHECK: invoke void @cwg1807::S::S(){{.+}}
2222
// CHECK-NEXT: {{.+}} unwind label %lpad
2323
// CHECK-LABEL: lpad:
2424
// CHECK: br {{.+}}, label {{.+}}, label %arraydestroy.body
2525
// CHECK-LABEL: arraydestroy.body:
2626
// CHECK: [[ARRAYDESTROY_ELEMENT:%.*]] = getelementptr {{.+}}, i64 -1
27-
// CXX98-NEXT: invoke void @dr1807::S::~S()({{.*}}[[ARRAYDESTROY_ELEMENT]])
28-
// SINCE-CXX11-NEXT: call void @dr1807::S::~S()({{.*}}[[ARRAYDESTROY_ELEMENT]])
27+
// CXX98-NEXT: invoke void @cwg1807::S::~S()({{.*}}[[ARRAYDESTROY_ELEMENT]])
28+
// SINCE-CXX11-NEXT: call void @cwg1807::S::~S()({{.*}}[[ARRAYDESTROY_ELEMENT]])

clang/test/CXX/drs/dr185.cpp renamed to clang/test/CXX/drs/cwg185.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
77
// RUN: %clang_cc1 -std=c++2c %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
88

9-
namespace dr185 { // dr185: 2.7
9+
namespace cwg185 { // cwg185: 2.7
1010
struct A {
1111
mutable int value;
1212
explicit A(int i) : value(i) {}
@@ -20,11 +20,11 @@ int foo() {
2020
return n.value;
2121
}
2222

23-
// CHECK-LABEL: define {{.*}} i32 @dr185::foo()
24-
// CHECK: call void @dr185::A::A(int)(ptr {{[^,]*}} %ref.tmp, {{.*}})
23+
// CHECK-LABEL: define {{.*}} i32 @cwg185::foo()
24+
// CHECK: call void @cwg185::A::A(int)(ptr {{[^,]*}} %ref.tmp, {{.*}})
2525
// CHECK: store ptr %ref.tmp, ptr %t
2626
// CHECK-NOT: %t =
27-
// CHECK: [[DR185_T:%.+]] = load ptr, ptr %t
28-
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr {{[^,]*}} %n, ptr {{[^,]*}} [[DR185_T]], {{.*}})
27+
// CHECK: [[CWG185_T:%.+]] = load ptr, ptr %t
28+
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr {{[^,]*}} %n, ptr {{[^,]*}} [[CWG185_T]], {{.*}})
2929
// CHECK-LABEL: }
30-
} // namespace dr185
30+
} // namespace cwg185

clang/test/CXX/drs/dr193.cpp renamed to clang/test/CXX/drs/cwg193.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define NOTHROW noexcept(true)
1313
#endif
1414

15-
namespace dr193 { // dr193: 2.7
15+
namespace cwg193 { // cwg193: 2.7
1616
struct A {
1717
~A() NOTHROW {}
1818
};
@@ -35,12 +35,12 @@ void foo() {
3535
}
3636

3737
// skipping over D1 (complete object destructor)
38-
// CHECK-LABEL: define {{.*}} void @dr193::D::~D(){{.*}}
39-
// CHECK-LABEL: define {{.*}} void @dr193::D::~D(){{.*}}
40-
// CHECK-NOT: call void @dr193::A::~A()
41-
// CHECK-NOT: call void @dr193::B::~B()
42-
// CHECK: call void @dr193::C::~C()
43-
// CHECK: call void @dr193::B::~B()
44-
// CHECK: call void @dr193::A::~A()
38+
// CHECK-LABEL: define {{.*}} void @cwg193::D::~D(){{.*}}
39+
// CHECK-LABEL: define {{.*}} void @cwg193::D::~D(){{.*}}
40+
// CHECK-NOT: call void @cwg193::A::~A()
41+
// CHECK-NOT: call void @cwg193::B::~B()
42+
// CHECK: call void @cwg193::C::~C()
43+
// CHECK: call void @cwg193::B::~B()
44+
// CHECK: call void @cwg193::A::~A()
4545
// CHECK-LABEL: }
46-
} // namespace dr193
46+
} // namespace cwg193

clang/test/CXX/drs/dr199.cpp renamed to clang/test/CXX/drs/cwg199.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define NOTHROW noexcept(true)
1313
#endif
1414

15-
namespace dr199 { // dr199: 2.8
15+
namespace cwg199 { // cwg199: 2.8
1616
struct A {
1717
~A() NOTHROW {}
1818
};
@@ -25,9 +25,9 @@ void foo() {
2525
A(), B();
2626
}
2727

28-
// CHECK-LABEL: define {{.*}} void @dr199::foo()
29-
// CHECK-NOT: call void @dr199::A::~A()
30-
// CHECK: call void @dr199::B::~B()
31-
// CHECK: call void @dr199::A::~A()
28+
// CHECK-LABEL: define {{.*}} void @cwg199::foo()
29+
// CHECK-NOT: call void @cwg199::A::~A()
30+
// CHECK: call void @cwg199::B::~B()
31+
// CHECK: call void @cwg199::A::~A()
3232
// CHECK-LABEL: }
33-
} // namespace dr199
33+
} // namespace cwg199

clang/test/CXX/drs/dr201.cpp renamed to clang/test/CXX/drs/cwg201.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define NOTHROW noexcept(true)
1313
#endif
1414

15-
namespace dr201 { // dr201: 2.8
15+
namespace cwg201 { // cwg201: 2.8
1616

1717
extern void full_expr_fence() NOTHROW;
1818

@@ -31,12 +31,12 @@ void foo() {
3131
full_expr_fence();
3232
}
3333

34-
// CHECK-LABEL: define {{.*}} void @dr201::foo()
35-
// CHECK: call void @dr201::full_expr_fence()
36-
// CHECK: call void @dr201::B::B(dr201::A)
37-
// CHECK: call void @dr201::A::~A()
38-
// CHECK: call void @dr201::full_expr_fence()
39-
// CHECK: call void @dr201::B::~B()
34+
// CHECK-LABEL: define {{.*}} void @cwg201::foo()
35+
// CHECK: call void @cwg201::full_expr_fence()
36+
// CHECK: call void @cwg201::B::B(cwg201::A)
37+
// CHECK: call void @cwg201::A::~A()
38+
// CHECK: call void @cwg201::full_expr_fence()
39+
// CHECK: call void @cwg201::B::~B()
4040
// CHECK-LABEL: }
4141

42-
} // namespace dr201
42+
} // namespace cwg201

clang/test/CXX/drs/dr210.cpp renamed to clang/test/CXX/drs/cwg210.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#pragma clang diagnostic pop
1414
#endif
1515

16-
namespace dr210 { // dr210: 2.7
16+
namespace cwg210 { // cwg210: 2.7
1717
struct B {
1818
long i;
1919
B();
@@ -33,9 +33,9 @@ void toss(const B* b) {
3333
throw *b;
3434
}
3535

36-
// CHECK-LABEL: define {{.*}} void @dr210::toss(dr210::B const*)
36+
// CHECK-LABEL: define {{.*}} void @cwg210::toss(cwg210::B const*)
3737
// CHECK: %[[EXCEPTION:.*]] = call ptr @__cxa_allocate_exception(i64 16)
38-
// CHECK: call void @__cxa_throw(ptr %[[EXCEPTION]], ptr @typeinfo for dr210::B, ptr @dr210::B::~B())
38+
// CHECK: call void @__cxa_throw(ptr %[[EXCEPTION]], ptr @typeinfo for cwg210::B, ptr @cwg210::B::~B())
3939
// CHECK-LABEL: }
4040

41-
} // namespace dr210
41+
} // namespace cwg210

clang/test/CXX/drs/dr2335.cpp renamed to clang/test/CXX/drs/cwg2335.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// expected-no-diagnostics
1111
#endif
1212

13-
namespace dr2335 { // dr2335: no drafting 2018-06
13+
namespace cwg2335 { // cwg2335: no drafting 2018-06
1414
// FIXME: current consensus is that the examples are well-formed.
1515
#if __cplusplus >= 201402L
1616
namespace ex1 {
@@ -25,24 +25,24 @@ namespace ex2 {
2525
template <int> struct X {};
2626
template <class T> struct partition_indices {
2727
static auto compute_right() { return X<I>(); }
28-
// since-cxx14-error@-1 {{no member 'I' in 'dr2335::ex2::partition_indices<int>'; it has not yet been instantiated}}
29-
// since-cxx14-note@#dr2335-ex2-right {{in instantiation of member function 'dr2335::ex2::partition_indices<int>::compute_right' requested here}}
30-
// since-cxx14-note@#dr2335-ex2-inst {{in instantiation of template class 'dr2335::ex2::partition_indices<int>' requested here}}
31-
// since-cxx14-note@#dr2335-ex2-I {{not-yet-instantiated member is declared here}}
32-
static constexpr auto right = compute_right; // #dr2335-ex2-right
33-
static constexpr int I = sizeof(T); // #dr2335-ex2-I
28+
// since-cxx14-error@-1 {{no member 'I' in 'cwg2335::ex2::partition_indices<int>'; it has not yet been instantiated}}
29+
// since-cxx14-note@#cwg2335-ex2-right {{in instantiation of member function 'cwg2335::ex2::partition_indices<int>::compute_right' requested here}}
30+
// since-cxx14-note@#cwg2335-ex2-inst {{in instantiation of template class 'cwg2335::ex2::partition_indices<int>' requested here}}
31+
// since-cxx14-note@#cwg2335-ex2-I {{not-yet-instantiated member is declared here}}
32+
static constexpr auto right = compute_right; // #cwg2335-ex2-right
33+
static constexpr int I = sizeof(T); // #cwg2335-ex2-I
3434
};
35-
template struct partition_indices<int>; // #dr2335-ex2-inst
35+
template struct partition_indices<int>; // #cwg2335-ex2-inst
3636
} // namespace ex2
3737

3838
namespace ex3 {
3939
struct partition_indices {
40-
static auto compute_right() {} // #dr2335-compute_right
41-
static constexpr auto right = compute_right; // #dr2335-ex3-right
40+
static auto compute_right() {} // #cwg2335-compute_right
41+
static constexpr auto right = compute_right; // #cwg2335-ex3-right
4242
// since-cxx14-error@-1 {{function 'compute_right' with deduced return type cannot be used before it is defined}}
43-
// since-cxx14-note@#dr2335-compute_right {{'compute_right' declared here}}
44-
// since-cxx14-error@#dr2335-ex3-right {{declaration of variable 'right' with deduced type 'const auto' requires an initializer}}
43+
// since-cxx14-note@#cwg2335-compute_right {{'compute_right' declared here}}
44+
// since-cxx14-error@#cwg2335-ex3-right {{declaration of variable 'right' with deduced type 'const auto' requires an initializer}}
4545
};
4646
} // namespace ex3
4747
#endif
48-
} // namespace dr2335
48+
} // namespace cwg2335

clang/test/CXX/drs/dr2390.cpp renamed to clang/test/CXX/drs/cwg2390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -E -P %s -o - | FileCheck %s
22

3-
// dr2390: 14
3+
// cwg2390: 14
44

55
namespace PR48462 {
66
// Test that macro expansion of the builtin argument works.

clang/test/CXX/drs/dr2504.cpp renamed to clang/test/CXX/drs/cwg2504.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,SINCE-CXX11
77
// RUN: %clang_cc1 -std=c++2c %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,SINCE-CXX11
88

9-
namespace dr2504 { // dr2504: no
9+
namespace cwg2504 { // cwg2504: no
1010
#if __cplusplus >= 201103L
1111
struct V { V() = default; V(int); };
1212
struct Q { Q(); };
@@ -27,11 +27,11 @@ void foo() { C c; } // bar is not invoked, because the V subobject is not initia
2727
// we are not supposed to unconditionally call `bar()` and call a constructor
2828
// inherited from `V`.
2929

30-
// SINCE-CXX11-LABEL: define linkonce_odr void @dr2504::B::B()
30+
// SINCE-CXX11-LABEL: define linkonce_odr void @cwg2504::B::B()
3131
// SINCE-CXX11-NOT: br
32-
// SINCE-CXX11: call noundef i32 @dr2504::bar()
32+
// SINCE-CXX11: call noundef i32 @cwg2504::bar()
3333
// SINCE-CXX11-NOT: br
34-
// SINCE-CXX11: call void @dr2504::A::A(int)
34+
// SINCE-CXX11: call void @cwg2504::A::A(int)
3535
// SINCE-CXX11-LABEL: }
3636

3737
// CHECK: {{.*}}

clang/test/CXX/drs/dr292.cpp renamed to clang/test/CXX/drs/cwg292.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -disable-llvm-passes -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
77
// RUN: %clang_cc1 -std=c++2c %s -triple x86_64-linux-gnu -emit-llvm -disable-llvm-passes -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
88

9-
namespace dr292 { // dr292: 2.9
9+
namespace cwg292 { // cwg292: 2.9
1010

1111
extern int g();
1212

@@ -18,13 +18,13 @@ void f() {
1818
new A(g());
1919
}
2020

21-
// CHECK-LABEL: define {{.*}} void @dr292::f()()
21+
// CHECK-LABEL: define {{.*}} void @cwg292::f()()
2222
// CHECK: %[[CALL:.+]] = call {{.*}} @operator new(unsigned long)({{.*}})
23-
// CHECK: invoke {{.*}} i32 @dr292::g()()
23+
// CHECK: invoke {{.*}} i32 @cwg292::g()()
2424
// CHECK-NEXT: to {{.*}} unwind label %lpad
2525
// CHECK-LABEL: lpad:
2626
// CHECK: call void @operator delete(void*)(ptr {{.*}} %[[CALL]])
2727
// CHECK-LABEL: eh.resume:
2828
// CHECK-LABEL: }
2929

30-
} // namespace dr292
30+
} // namespace cwg292

clang/test/CXX/drs/dr392.cpp renamed to clang/test/CXX/drs/cwg392.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define NOTHROW noexcept(true)
1313
#endif
1414

15-
namespace dr392 { // dr392: 2.8
15+
namespace cwg392 { // cwg392: 2.8
1616

1717
struct A {
1818
operator bool() NOTHROW;
@@ -32,9 +32,9 @@ void f()
3232
if (C().get()) {}
3333
}
3434

35-
} // namespace dr392
35+
} // namespace cwg392
3636

37-
// CHECK-LABEL: define {{.*}} void @dr392::f()()
38-
// CHECK: call {{.*}} i1 @dr392::A::operator bool()
39-
// CHECK: call void @dr392::C::~C()
37+
// CHECK-LABEL: define {{.*}} void @cwg392::f()()
38+
// CHECK: call {{.*}} i1 @cwg392::A::operator bool()
39+
// CHECK: call void @cwg392::C::~C()
4040
// CHECK-LABEL: }

clang/test/CXX/drs/dr412.cpp renamed to clang/test/CXX/drs/cwg412.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %clang_cc1 -std=c++23 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
77
// RUN: %clang_cc1 -std=c++2c %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
88

9-
// dr412: 3.4
9+
// cwg412: 3.4
1010
// lwg404: yes
1111
// lwg2340: yes
1212

0 commit comments

Comments
 (0)