Test case: lib/atf/libatf-c++/macros_test:detect_unused_tests

Metadata

Standard output

> /usr/local/bin/riscv64-unknown-freebsd13.0-g++ -O2 -DHAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c compiler_test.cpp
> /usr/local/bin/riscv64-unknown-freebsd13.0-g++ -O2 -DHAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c /usr/tests/lib/atf/libatf-c++/unused_test.cpp

Standard error

compiler_test.cpp:2:41: error: 'unused' defined but not used [-Werror=unused-variable]
 #define define_unused static test_class unused
                                         ^~~~~~
compiler_test.cpp:3:1: note: in expansion of macro 'define_unused'
 define_unused;
 ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
/usr/local/bin/riscv64-unknown-freebsd13.0-g++ failed with exit code 1
Files left in work directory after failure: compiler_test.cpp, test.o