projects
/
platform
/
upstream
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
call.c (null_ptr_cst_p): Use maybe_constant_value.
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert3.C
diff --git
a/gcc/testsuite/g++.dg/cpp0x/static_assert3.C
b/gcc/testsuite/g++.dg/cpp0x/static_assert3.C
index
69f93ab
..
1ff2ffc
100644
(file)
--- a/
gcc/testsuite/g++.dg/cpp0x/static_assert3.C
+++ b/
gcc/testsuite/g++.dg/cpp0x/static_assert3.C
@@
-1,3
+1,4
@@
// { dg-options "-std=c++0x" }
static_assert(7 / 0, "X"); // { dg-error "non-constant condition" }
// { dg-warning "division by zero" "" { target *-*-* } 2 }
+// { dg-error "7 / 0.. is not a constant expression" "" { target *-*-* } 2 }