diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 78025fcecf33..50bbc7c132e8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-19  Andreas Schwab  <schwab@suse.de>
+
+	* g++.dg/other/unused1.C: Also match "stringz".
+
 2006-05-19  Mark Mitchell  <mark@codesourcery.com>
 
 	PR c++/26433
diff --git a/gcc/testsuite/g++.dg/other/unused1.C b/gcc/testsuite/g++.dg/other/unused1.C
index e50ce380fce0..e5c9236248d5 100644
--- a/gcc/testsuite/g++.dg/other/unused1.C
+++ b/gcc/testsuite/g++.dg/other/unused1.C
@@ -43,5 +43,5 @@ int bar5 (void)
 /* { dg-final { scan-assembler "foo" } } */
 /* { dg-final { scan-assembler "boo" } } */
 /* { dg-final { scan-assembler "cue" } } */
-/* { dg-final { scan-assembler "string\t\"class2\"" } } */
-/* { dg-final { scan-assembler "string\t\"printer\"" } } */
+/* { dg-final { scan-assembler "stringz?\t\"class2\"" } } */
+/* { dg-final { scan-assembler "stringz?\t\"printer\"" } } */