Skip to content

Commit d24882d

Browse files
committed
test
1 parent 1c4084e commit d24882d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/cli/clang-import_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ def test_tokens_function2(tmp_path):
361361
assert '3:\n' in stdout
362362
assert '4: return 12 ;' in stdout
363363

364+
def test_tokens_function3(tmp_path):
365+
test_file = tmp_path / 'test.cpp'
366+
stdout = _run_cppcheck_debug(test_file, '\nint x; void foo(){ x |= 1 << 30; }')
367+
assert '2: int ...void foo ( int x@var1 , int y@var2 ) { }' in stdout
364368

365369
def test_tokens_for(tmp_path):
366370
test_file = tmp_path / 'test.cpp'

0 commit comments

Comments
 (0)