Skip to content

Commit 0e1de37

Browse files
committed
Nit
1 parent eec4ce9 commit 0e1de37

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Diff for: test/testother.cpp

+2-13
Original file line numberDiff line numberDiff line change
@@ -4535,8 +4535,7 @@ class TestOther : public TestFixture {
45354535
ASSERT_EQUALS("", errout_str());
45364536

45374537
// Ticket #10093 "redundantAssignment when using a union"
4538-
check("#include <stdio.h>\n"
4539-
"typedef union{\n"
4538+
check("typedef union{\n"
45404539
" char as_char[4];\n"
45414540
" int as_int;\n"
45424541
"} union_t;\n"
@@ -4554,17 +4553,7 @@ class TestOther : public TestFixture {
45544553
ASSERT_EQUALS("", errout_str());
45554554

45564555
// 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"
45684557
" union {\n"
45694558
" char * s8;\n"
45704559
" unsigned long long u64;\n"

0 commit comments

Comments
 (0)