[committed] libstdc++: Define foo() in optional/ref/access.cc test.
Checks
Commit Message
Fix undefined reference error when compiling with -O0.
libstdc++-v3/ChangeLog:
* testsuite/20_util/optional/ref/access.cc: Provide
definition for foo().
---
Pushed to trunk. Tested on x86_64-linux.
libstdc++-v3/testsuite/20_util/optional/ref/access.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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()
{