aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/array2.C
blob: b091d96bec88b8c7656b3e6e423c4b777624cafc (plain)
1
2
3
4
5
6
// PR c++/25263
// { dg-do compile }

int x[1/0];  // { dg-warning "division by zero" }
             // { dg-error "constant" "constant" { target *-*-* } 4 }