From 623e30d6771270efd05933460ef0eb1c75b82284 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 15 Jan 2013 20:45:53 +0100 Subject: [PATCH] fix unit test for varFuncNullUB --- test/testother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testother.cpp b/test/testother.cpp index 1ce929b4d..5343450f4 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -6805,7 +6805,7 @@ private: void varFuncNullUB() { // #4482 check("void a(...);\n" "void b() { a(NULL); }"); - ASSERT_EQUALS("[test.cpp:2]: (portability) Passing NULL to a function with variable number of arguments leads to undefined behaviour on some platforms.\n", errout.str()); + ASSERT_EQUALS("[test.cpp:2]: (portability) Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.\n", errout.str()); check("void a(char *p, ...);\n" "void b() { a(NULL, 2); }");