summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/pr29571.C
blob: 9e8e6093ef2fa5ed5b6808ceeb5ddd1626502547 (plain)
1
2
3
4
5
6
7
8
// PR c++/29571

struct A
{
  static const int i = 0/0 + ""; // { dg-warning "division by zero" }
  // { dg-error "field initializer is not constant" "" { target *-*-* } 5 }
  static const int j = int(i);
};