5 static const int i = 0/0 + ""; // { dg-warning "division by zero" }
6 // { dg-error "constant|conversion|initializ" "" { target *-*-* } .-1 }
7 static const int j = int(i);
10 // Currently G++ complains about a non-constant initializer for 'j' in
11 // C++11 mode, but not C++98. Either way is correct because it depends on
12 // the erroneous initializer for i, so don't require the error.
13 // { dg-prune-output ":7:" }