Commit aa8ce01e authored by Antonio Ospite's avatar Antonio Ospite Committed by Aaron Boxer
Browse files

test_sparse_array: don't put main() in a namespace, fix a linking error

The main() function is expected to be a global function, the code won't
link as a standalone executable if main() is put into a namespace.

This fixes the following linking error:

-----------------------------------------------------------------------
[ 32%] Linking CXX executable ../../../bin/test_sparse_array
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
-----------------------------------------------------------------------
parent 86b2c35d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment