aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c90-const-expr-7.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/c90-const-expr-7.c')
-rw-r--r--gcc/testsuite/gcc.dg/c90-const-expr-7.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/testsuite/gcc.dg/c90-const-expr-7.c b/gcc/testsuite/gcc.dg/c90-const-expr-7.c
index 30aeba0..7a91205 100644
--- a/gcc/testsuite/gcc.dg/c90-const-expr-7.c
+++ b/gcc/testsuite/gcc.dg/c90-const-expr-7.c
@@ -7,20 +7,20 @@
#include <float.h>
int a = DBL_MAX; /* { dg-warning "overflow in implicit constant conversion" } */
-/* { dg-error "overflow in constant expression" "constant" { target *-*-* } 9 } */
+/* { dg-error "overflow in constant expression" "constant" { target *-*-* } .-1 } */
int b = (int) DBL_MAX; /* { dg-error "overflow" "" } */
unsigned int c = -1.0; /* { dg-warning "overflow in implicit constant conversion" } */
-/* { dg-error "overflow in constant expression" "constant" { target *-*-* } 12 } */
+/* { dg-error "overflow in constant expression" "constant" { target *-*-* } .-1 } */
unsigned int d = (unsigned)-1.0; /* { dg-error "overflow" } */
int e = 0 << 1000; /* { dg-warning "shift count" } */
-/* { dg-error "constant" "constant" { target *-*-* } 16 } */
+/* { dg-error "constant" "constant" { target *-*-* } .-1 } */
int f = 0 << -1; /* { dg-warning "shift count" } */
-/* { dg-error "constant" "constant" { target *-*-* } 18 } */
+/* { dg-error "constant" "constant" { target *-*-* } .-1 } */
int g = 0 >> 1000; /* { dg-warning "shift count" } */
-/* { dg-error "constant" "constant" { target *-*-* } 20 } */
+/* { dg-error "constant" "constant" { target *-*-* } .-1 } */
int h = 0 >> -1; /* { dg-warning "shift count" } */
-/* { dg-error "constant" "constant" { target *-*-* } 22 } */
+/* { dg-error "constant" "constant" { target *-*-* } .-1 } */
int b1 = (0 ? (int) DBL_MAX : 0);
unsigned int d1 = (0 ? (unsigned int)-1.0 : 0);
@@ -32,4 +32,4 @@ int h1 = (0 ? 0 >> -1: 0);
int i = -1 << 0;
int j[1] = { DBL_MAX }; /* { dg-warning "overflow in implicit constant conversion" } */
-/* { dg-error "overflow in constant expression" "constant" { target *-*-* } 34 } */
+/* { dg-error "overflow in constant expression" "constant" { target *-*-* } .-1 } */