@@ -18,16 +18,16 @@ void test_cv_qualifications() {
1818 using R = std::vector<int >;
1919 R in = {1 , 2 , 3 };
2020
21- ( void )std::ranges::to< const R>(
22- in); // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be const-qualified, please remove the const}}
23- ( void )(in |
24- std::ranges::to<
25- const R>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be const-qualified, please remove the const}}
26- ( void )std::ranges::to< volatile R>(
27- in); // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be volatile-qualified, please remove the volatile}}
28- ( void )(in |
29- std::ranges::to<
30- volatile R>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be volatile-qualified, please remove the volatile}}
21+ // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be const-qualified, please remove the const}}
22+ ( void )std::ranges::to< const R>(in);
23+ // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be const-qualified, please remove the const}}
24+ ( void )(in | std::ranges::to<const R>());
25+
26+ // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be volatile-qualified, please remove the volatile}}
27+ ( void )std::ranges::to< volatile R>(in);
28+
29+ // expected-error-re@*:* {{static assertion failed{{.*}}The target container cannot be volatile-qualified, please remove the volatile}}
30+ ( void )(in | std::ranges::to< volatile R>());
3131}
3232// unexpected_types
3333void ff ();
@@ -54,39 +54,39 @@ void test_unexpected_types() {
5454 operator member_ptr () const ;
5555 operator color () const ;
5656 };
57- (void )std::ranges::to<int >(
58- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
59- (void )(R{} | std::ranges::to<
60- int >()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
61- (void )std::ranges::to<int *>(
62- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
63- (void )(R{} | std::ranges::to<
64- int *>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
65- (void )std::ranges::to<func_ptr>(
66- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
67- (void )(R{} |
68- std::ranges::to<
69- func_ptr>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
70-
71- (void )std::ranges::to<member_ptr>(
72- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
73- (void )(R{} |
74- std::ranges::to<
75- member_ptr>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
76-
77- (void )std::ranges::to<func_t >(
78- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
79- (void )(R{} | std::ranges::to<
80- func_t >()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
81-
82- (void )std::ranges::to<void >(
83- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
84- (void )(R{} | std::ranges::to<
85- void >()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
57+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
58+ (void )std::ranges::to<int >(R{});
59+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
60+ (void )(R{} | std::ranges::to<int >());
61+
62+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
63+ (void )std::ranges::to<int *>(R{});
64+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
65+ (void )(R{} | std::ranges::to<int *>());
66+
67+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
68+ (void )std::ranges::to<func_ptr>(R{});
69+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
70+ (void )(R{} | std::ranges::to<func_ptr>());
71+
72+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
73+ (void )std::ranges::to<member_ptr>(R{});
74+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
75+ (void )(R{} | std::ranges::to<member_ptr>());
76+
77+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
78+ (void )std::ranges::to<func_t >(R{});
79+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
80+ (void )(R{} | std::ranges::to<func_t >());
81+
82+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
83+ (void )std::ranges::to<void >(R{});
84+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
8685 // expected-error-re@*:* {{static assertion failed{{.*}}ranges::to: unable to convert to the given container type.}}
86+ (void )(R{} | std::ranges::to<void >());
8787
88- ( void )std::ranges::to<color>(
89- R{}); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
90- ( void )(R{} | std::ranges::to<
91- color>()); // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
88+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
89+ ( void )std::ranges::to<color>( R{});
90+ // expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
91+ ( void )(R{} | std::ranges::to< color>());
9292}
0 commit comments