Skip to content

Commit 7fe7264

Browse files
committed
format added file and correct name
1 parent 44d6a65 commit 7fe7264

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

libcxx/test/libcxx/ranges/range.utility/range.utility.conv/to.verfiy.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <ranges>
2+
3+
void test() {
4+
struct R {
5+
int* begin() const { reurn nullptr; };
6+
int* end() const { return nullptr; };
7+
8+
operator int() const { return 0; }
9+
};
10+
(void)std::ranges::to<int>(R{});
11+
//expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
12+
(void)(R{} | std::ranges::to<int>());
13+
//expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
14+
15+
}

0 commit comments

Comments
 (0)