File tree 1 file changed +2
-13
lines changed
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -4535,8 +4535,7 @@ class TestOther : public TestFixture {
4535
4535
ASSERT_EQUALS("", errout_str());
4536
4536
4537
4537
// Ticket #10093 "redundantAssignment when using a union"
4538
- check("#include <stdio.h>\n"
4539
- "typedef union{\n"
4538
+ check("typedef union{\n"
4540
4539
" char as_char[4];\n"
4541
4540
" int as_int;\n"
4542
4541
"} union_t;\n"
@@ -4554,17 +4553,7 @@ class TestOther : public TestFixture {
4554
4553
ASSERT_EQUALS("", errout_str());
4555
4554
4556
4555
// Ticket #5115 "redundantAssignment when using a union"
4557
- check("#include <stdio.h>\n"
4558
- "typedef union{\n"
4559
- " char as_char[4];\n"
4560
- " int as_int;\n"
4561
- "} union_t;\n"
4562
- "void fn(char *data, int len) {\n"
4563
- " int i;\n"
4564
- " for (i = 0; i < len; i++)\n"
4565
- " data[i] = 'a';\n"
4566
- "}\n"
4567
- "void foo(char *ptr) {\n"
4556
+ check("void foo(char *ptr) {\n"
4568
4557
" union {\n"
4569
4558
" char * s8;\n"
4570
4559
" unsigned long long u64;\n"
You can’t perform that action at this time.
0 commit comments