call.c (null_ptr_cst_p): Use maybe_constant_value.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / cpp0x / static_assert3.C
index 69f93ab..1ff2ffc 100644 (file)
@@ -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 }