mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user