Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert3.C
blob: 1ff2ffc94f7096e9696e8ade6a4f24f8806b8258 [
file
] [
log
] [
blame
]
// { 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 }