Skip to content

Commit ebaccf9

Browse files
committed
remove declaration of local Except struct
1 parent 5f5fab0 commit ebaccf9

14 files changed

+0
-28
lines changed

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.convert.copy.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ constexpr bool test() {
175175

176176
void testException() {
177177
#ifndef TEST_HAS_NO_EXCEPTIONS
178-
struct Except {};
179-
180178
struct ThrowingInt {
181179
ThrowingInt(int) { throw Except{}; }
182180
};

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.convert.move.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ constexpr bool test() {
174174

175175
void testException() {
176176
#ifndef TEST_HAS_NO_EXCEPTIONS
177-
struct Except {};
178-
179177
struct ThrowingInt {
180178
ThrowingInt(int) { throw Except{}; }
181179
};

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.copy.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ constexpr bool test() {
114114

115115
void testException() {
116116
#ifndef TEST_HAS_NO_EXCEPTIONS
117-
struct Except {};
118-
119117
struct Throwing {
120118
Throwing() = default;
121119
Throwing(const Throwing&) { throw Except{}; }

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.default.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ constexpr bool test() {
6060

6161
void testException() {
6262
#ifndef TEST_HAS_NO_EXCEPTIONS
63-
struct Except {};
64-
6563
struct Throwing {
6664
Throwing() { throw Except{}; };
6765
};

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.inplace.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ constexpr bool test() {
115115

116116
void testException() {
117117
#ifndef TEST_HAS_NO_EXCEPTIONS
118-
struct Except {};
119-
120118
struct Throwing {
121119
Throwing(int) { throw Except{}; };
122120
};

libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.move.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ constexpr bool test() {
135135

136136
void testException() {
137137
#ifndef TEST_HAS_NO_EXCEPTIONS
138-
struct Except {};
139-
140138
struct Throwing {
141139
Throwing() = default;
142140
Throwing(Throwing&&) { throw Except{}; }

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.convert.copy.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ constexpr bool test() {
111111

112112
void testException() {
113113
#ifndef TEST_HAS_NO_EXCEPTIONS
114-
struct Except {};
115-
116114
struct ThrowingInt {
117115
ThrowingInt(int) { throw Except{}; }
118116
};

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.convert.move.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ constexpr bool test() {
112112

113113
void testException() {
114114
#ifndef TEST_HAS_NO_EXCEPTIONS
115-
struct Except {};
116-
117115
struct ThrowingInt {
118116
ThrowingInt(int) { throw Except{}; }
119117
};

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.copy.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ constexpr bool test() {
7676

7777
void testException() {
7878
#ifndef TEST_HAS_NO_EXCEPTIONS
79-
struct Except {};
80-
8179
struct Throwing {
8280
Throwing() = default;
8381
Throwing(const Throwing&) { throw Except{}; }

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.move.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ constexpr bool test() {
9191

9292
void testException() {
9393
#ifndef TEST_HAS_NO_EXCEPTIONS
94-
struct Except {};
95-
9694
struct Throwing {
9795
Throwing() = default;
9896
Throwing(Throwing&&) { throw Except{}; }

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.unexpect.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ constexpr bool test() {
115115

116116
void testException() {
117117
#ifndef TEST_HAS_NO_EXCEPTIONS
118-
struct Except {};
119-
120118
struct Throwing {
121119
Throwing(int) { throw Except{}; };
122120
};

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.unexpect_init_list.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ constexpr bool test() {
101101

102102
void testException() {
103103
#ifndef TEST_HAS_NO_EXCEPTIONS
104-
struct Except {};
105-
106104
struct Throwing {
107105
Throwing(std::initializer_list<int>, int) { throw Except{}; };
108106
};

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.unexpected.copy.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ constexpr bool test() {
6767

6868
void testException() {
6969
#ifndef TEST_HAS_NO_EXCEPTIONS
70-
struct Except {};
71-
7270
struct Throwing {
7371
Throwing(int) { throw Except{}; }
7472
};

libcxx/test/std/utilities/expected/expected.void/ctor/ctor.unexpected.move.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ constexpr bool test() {
7777

7878
void testException() {
7979
#ifndef TEST_HAS_NO_EXCEPTIONS
80-
struct Except {};
81-
8280
struct Throwing {
8381
Throwing(int) { throw Except{}; }
8482
};

0 commit comments

Comments
 (0)