summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wshift-negative-value-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wshift-negative-value-1.c')
-rw-r--r--gcc/testsuite/c-c++-common/Wshift-negative-value-1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/Wshift-negative-value-1.c b/gcc/testsuite/c-c++-common/Wshift-negative-value-1.c
index 5d803ade8d1..8f140345608 100644
--- a/gcc/testsuite/c-c++-common/Wshift-negative-value-1.c
+++ b/gcc/testsuite/c-c++-common/Wshift-negative-value-1.c
@@ -47,3 +47,5 @@ right (int x)
r += -1U >> x;
return r;
}
+
+/* { dg-error "left operand of shift expression" "shift" { target c++ } 9 } */