libstdc++: Define foo() in optional/ref/access.cc test.

Fix undefined reference error when compiling with -O0.

libstdc++-v3/ChangeLog:

	* testsuite/20_util/optional/ref/access.cc: Provide
	definition for foo().
This commit is contained in:
Tomasz Kamiński
2026-04-04 10:33:36 +02:00
parent 8a6b78ec57
commit b0cf247799

View File

@@ -100,7 +100,7 @@ static_assert( has_value_or_for<int(*)()> );
int i;
NonMovable nm;
int arr[2];
int foo();
int foo() { return 1; }
int main()
{