summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/static_assert3.C
blob: 0a4cbc98aff9bc3ea54c30e74d75423ec7a35023 (plain)
1
2
3
4
// { dg-options "-std=c++0x" }
static_assert(7 / 0, "X"); // { dg-error "non-constant condition" "non-constant" }
// { dg-warning "division by zero" "zero" { target *-*-* } 2 }
// { dg-error "7 / 0.. is not a constant expression" "not a constant" { target *-*-* } 2 }