Revert "Fixed #7999 (Inline suppressions do not work under weird circumstances)"

This reverts commit 0cc41f44b8.
This commit is contained in:
Daniel Marjamäki 2019-05-02 06:50:08 +02:00
parent 0cc41f44b8
commit 202d38b9eb
3 changed files with 0 additions and 24 deletions

View File

@ -1,2 +0,0 @@
#include <1.h>

View File

@ -1,5 +0,0 @@
// cppcheck-suppress zerodiv
const int x = 10000 / 0;

View File

@ -1,17 +0,0 @@
# python -m pytest test-inline-suppress.py
import os
import re
from testutils import cppcheck
def test1():
ret, stdout, stderr = cppcheck('--inline-suppr proj-inline-suppress')
assert ret == 0
assert len(stderr) == 0
def test2():
ret, stdout, stderr = cppcheck('proj-inline-suppress')
assert ret == 0
assert len(stderr) > 0