aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c')
-rw-r--r--gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c b/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
index 052ab37..8df4e1f 100644
--- a/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
+++ b/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
@@ -17,6 +17,6 @@ char
g (void)
{
return (char) p;
-/* { dg-warning "cast from pointer to integer of different size" "" { target c } 19 } */
-/* { dg-error "cast from 'void\\*' to 'char' loses precision" "" { target c++ } 19 } */
+/* { dg-warning "cast from pointer to integer of different size" "" { target c } .-1 } */
+/* { dg-error "cast from 'void\\*' to 'char' loses precision" "" { target c++ } .-2 } */
}