diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wshift-negative-value-3.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/Wshift-negative-value-3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/Wshift-negative-value-3.c b/gcc/testsuite/c-c++-common/Wshift-negative-value-3.c index bf9b1a07bb7..1295b725569 100644 --- a/gcc/testsuite/c-c++-common/Wshift-negative-value-3.c +++ b/gcc/testsuite/c-c++-common/Wshift-negative-value-3.c @@ -47,3 +47,6 @@ right (int x) r += -1U >> x; return r; } + +/* { dg-error "not an integer constant" "no constant" { target c++ } 9 } */ +/* { dg-error "left operand of shift expression" "shift" { target c++ } 9 } */ |