From 9b67a4e22510219740b2324ddf56e613986cd7cb Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 26 Aug 2024 11:02:43 +0200 Subject: [PATCH] Update testsuppressions.cpp --- test/testsuppressions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testsuppressions.cpp b/test/testsuppressions.cpp index 4fa552679ec..d206f1f1b2a 100644 --- a/test/testsuppressions.cpp +++ b/test/testsuppressions.cpp @@ -967,6 +967,12 @@ class TestSuppressions : public TestFixture { SuppressionList suppressions6; ASSERT_EQUALS("", suppressions6.parseFile(file6)); ASSERT_EQUALS(true, suppressions6.isSuppressed(errorMessage("abc", "test.cpp", 123))); + + std::istringstream file7(" // comment\n" // #11450 + "abc"); + SuppressionList suppressions7; + ASSERT_EQUALS("", suppressions7.parseFile(file7)); + ASSERT_EQUALS(true, suppressions7.isSuppressed(errorMessage("abc", "test.cpp", 123))); } void inlinesuppress() const {