File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
libcxx/test/std/utilities/optional/optional.specalg Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,20 +19,21 @@ struct Foo {
1919 int x, y;
2020};
2121
22- class X {
22+ struct X {
2323 double i_;
2424
2525public:
2626 explicit X (int & i) : i_(i) {}
27- }
27+ };
2828
2929int main (int , char **) {
3030 int i = 1 ;
31- // expected-error-re@optional:* 3 {{static assertion failed{{.*}} make_optional<T&, Args...> is disallowed}}
31+ // expected-error-re@optional:* 4 {{static assertion failed{{.*}} make_optional<T&, Args...> is disallowed}}
32+ std::make_optional<int &>(i);
3233 std::make_optional<X&>(i);
3334 std::make_optional<int &>(1 );
3435 std::make_optional<Foo&>(1 , 2 );
3536
36- // FIXME: Garbage error messages that Clang produces after the static_assert is triggered
37+ // FIXME: Garbage error messages that Clang produces after the static_assert is reported
3738 // expected-error-re@optional:* 0+ {{no matching constructor for initialization of 'optional<{{.*}}>'}}
3839}
You can’t perform that action at this time.
0 commit comments