From 05df31c12af712be25d141933ed0621208b123b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 27 Jun 2021 09:04:47 +0200 Subject: [PATCH] Fixed unit tests --- test/testunusedfunctions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/testunusedfunctions.cpp b/test/testunusedfunctions.cpp index 6addaa070..88a9d8d9a 100644 --- a/test/testunusedfunctions.cpp +++ b/test/testunusedfunctions.cpp @@ -347,9 +347,8 @@ private: ASSERT_EQUALS("", errout.str()); // Don't crash on wrong syntax - ASSERT_THROW(check("int x __attribute__((constructor));\n" - "int x __attribute__((destructor));"), - InternalError); + check("int x __attribute__((constructor));\n" + "int y __attribute__((destructor));"); } void initializer_list() {