Skip to content

Commit 02fea80

Browse files
committed
Fix typo
1 parent 25e71f5 commit 02fea80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libcxx/test/std/utilities/optional/optional.specalg/make_optional_ref.verify.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ struct Foo {
1919
int x, y;
2020
};
2121

22-
class X {
22+
struct X {
2323
double i_;
2424

2525
public:
2626
explicit X(int& i) : i_(i) {}
27-
}
27+
};
2828

2929
int 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
}

0 commit comments

Comments
 (0)