Skip to content

Commit 04083fb

Browse files
committed
Rename, fix
1 parent cd4e41d commit 04083fb

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/cli/whole-program/odr3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #10431
22
#ifdef X
3-
struct S { S(); };
3+
struct S { S() {} };
44
#else
55
struct S {};
66
#endif

test/cli/whole-program_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,14 @@ def test_ctu_odr_config():
343343
'--template=simple',
344344
'--enable=information,style',
345345
'--error-exitcode=1',
346-
'whole-program/odr4.cpp',
347-
'whole-program/odr5.cpp'
346+
'whole-program/odr_cfg1.cpp',
347+
'whole-program/odr_cfg2.cpp'
348348
]
349349

350350
ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
351351
lines = stderr.splitlines()
352352
assert lines == [
353-
"whole-program{}odr4.cpp:2:1: error: The one definition rule is violated, different classes/structs have the same name 'S' [ctuOneDefinitionRuleViolation]".format(os.path.sep)
353+
"whole-program{}odr_cfg1.cpp:2:1: error: The one definition rule is violated, different classes/structs have the same name 'S' [ctuOneDefinitionRuleViolation]".format(os.path.sep)
354354
]
355355
assert stdout == ''
356356
assert ret == 1, stdout

0 commit comments

Comments
 (0)