Skip to content

Commit 66cd9cd

Browse files
fix syntax test file
1 parent 45fc342 commit 66cd9cd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

libcxx/test/libcxx/ranges/range.adaptors/range.concat/iterator.valueless_by_exception.pass.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static_assert(std::ranges::sized_range<Range<0>>);
154154

155155
int main() {
156156
{
157-
//valueless by exception test operator*
157+
// valueless by exception test operator*
158158
Range<0> r1;
159159
Range<1> r2;
160160

@@ -172,7 +172,7 @@ int main() {
172172
}
173173

174174
{
175-
//valueless by exception test operator==
175+
// valueless by exception test operator==
176176
flag = false;
177177
Range<0> r1;
178178
Range<1> r2;
@@ -190,7 +190,7 @@ int main() {
190190
}
191191

192192
{
193-
//valueless by exception test operator--
193+
// valueless by exception test operator--
194194
flag = false;
195195
Range<0> r1;
196196
Range<1> r2;
@@ -202,13 +202,12 @@ int main() {
202202
try {
203203
iter1 = std::move(iter2);
204204
} catch (...) {
205-
//ASSERT_SAME_TYPE(decltype(iter1), int);
206205
TEST_LIBCPP_ASSERT_FAILURE([&] { iter1--; }(), "valueless by exception");
207206
}
208207
}
209208

210209
{
211-
//valueless by exception test operator++
210+
// valueless by exception test operator++
212211
flag = false;
213212
Range<0> r1;
214213
Range<1> r2;
@@ -225,7 +224,7 @@ int main() {
225224
}
226225

227226
{
228-
//valueless by exception test operator+=
227+
// valueless by exception test operator+=
229228
flag = false;
230229
Range<0> r1;
231230
Range<1> r2;
@@ -242,7 +241,7 @@ int main() {
242241
}
243242

244243
{
245-
//valueless by exception test constructor
244+
// valueless by exception test constructor
246245
flag = false;
247246
Range<0> r1;
248247
Range<1> r2;

0 commit comments

Comments
 (0)