diff mbox series

[4/4] libsanitizer: update test

Message ID 20241107063538.4172543-5-kito.cheng@sifive.com
State New
Headers show
Series libsanitizer: merge from upstream | expand

Commit Message

Kito Cheng Nov. 7, 2024, 6:35 a.m. UTC
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/c-c++-common/ubsan/builtin-1.c b/gcc/testsuite/c-c++-common/ubsan/builtin-1.c
index 2f340e3e70f1..3d5291b409ec 100644
--- a/gcc/testsuite/c-c++-common/ubsan/builtin-1.c
+++ b/gcc/testsuite/c-c++-common/ubsan/builtin-1.c
@@ -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" } */