Open operasfantom opened 2 years ago
Looks like a problem @sava-cska is working on
/home/utbot/coreutils/tests/gnulib/lib/exclude_dot_c_test.cpp:684:59: error: expected unqualified-id
.v = from_bytes<exclude_segment::exclude_segment::(anonymous union at ../lib/exclude.c:106:5)>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
^
/home/utbot/coreutils/tests/gnulib/lib/exclude_dot_c_test.cpp:684:60: error: use of undeclared identifier 'anonymous'
.v = from_bytes<exclude_segment::exclude_segment::(anonymous union at ../lib/exclude.c:106:5)>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
TEST(error, excluded_file_name_test_7)
{
struct exclude ex = {
.head = NULL,
.patbuf = (struct pattern_buffer*) 0xffffffff};
char f[] = "cccccccac";
struct exclude ex = {
.head = NULL,
.patbuf = (struct pattern_buffer*) 0xffffffff};
struct exclude_segment utbotInnerVar1 = {
.next = NULL,
.type = (enum exclude_type)(2001152744),
.options = 0,
.v = from_bytes<exclude_segment::exclude_segment::(anonymous union at ../lib/exclude.c:106:5)>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
ex.head = (struct exclude_segment*) &utbotInnerVar1;
excluded_file_name(&ex, f);
}
/home/utbot/coreutils/tests/gnulib/lib/exclude_dot_c_test.cpp:677:20: error: redefinition of 'ex'
struct exclude ex = {
^
/home/utbot/coreutils/tests/gnulib/lib/exclude_dot_c_test.cpp:673:20: note: previous definition is here
struct exclude ex = {
^
TEST(error, excluded_file_name_test_7)
{
struct exclude ex = {
.head = NULL,
.patbuf = (struct pattern_buffer*) 0xffffffff};
char f[] = "cccccccac";
struct exclude ex = {
.head = NULL,
.patbuf = (struct pattern_buffer*) 0xffffffff};
struct exclude_segment utbotInnerVar1 = {
.next = NULL,
.type = (enum exclude_type)(2001152744),
.options = 0,
.v = from_bytes<exclude_segment::exclude_segment::(anonymous union at ../lib/exclude.c:106:5)>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
ex.head = (struct exclude_segment*) &utbotInnerVar1;
excluded_file_name(&ex, f);
}
Steps to reproduce
coreutils
libcoreutils.a
gnulib/lib/exclude.c
Initialisation of unnamed union (should be filtered out?)
Logs
Code
Wrong name of enum
Logs
Code