blob: 1ff2ffc94f7096e9696e8ade6a4f24f8806b8258 (
plain)
1
2
3
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 }
|