]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libsanitizer: update test
authorKito Cheng <kito.cheng@sifive.com>
Wed, 6 Nov 2024 03:47:03 +0000 (11:47 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 12 Nov 2024 13:56:06 +0000 (21:56 +0800)
gcc/testsuite/ChangeLog:

* c-c++-common/ubsan/builtin-1.c: Update test case due to
sanitizer has change the error message.

gcc/testsuite/c-c++-common/ubsan/builtin-1.c

index 2f340e3e70f1795d62ced9f0937c51b69a8993f4..3d5291b409ec432072e3a116f1a82732e4086872 100644 (file)
@@ -30,7 +30,7 @@ main ()
 }
 
 /* { dg-output "FOO MARKER1(\n|\r\n|\r)" } */
-/* { dg-output "(\[^\n\r]*runtime error: passing zero to ctz\\\(\\\), which is not a valid argument\[^\n\r]*(\n|\r\n|\r)){4}" } */
+/* { dg-output "(\[^\n\r]*runtime error: passing zero to __builtin_ctz\\\(\\\), which is not a valid argument\[^\n\r]*(\n|\r\n|\r)){4}" } */
 /* { dg-output "FOO MARKER2(\n|\r\n|\r)" } */
-/* { dg-output "(\[^\n\r]*runtime error: passing zero to clz\\\(\\\), which is not a valid argument\[^\n\r]*(\n|\r\n|\r)){4}" } */
+/* { dg-output "(\[^\n\r]*runtime error: passing zero to __builtin_clz\\\(\\\), which is not a valid argument\[^\n\r]*(\n|\r\n|\r)){4}" } */
 /* { dg-output "FOO MARKER3" } */