aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/explicit2.C
blob: 604426ae6d214a9275124aea81e8e7ec32076365 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/60417
// { dg-options -pedantic }

struct A { explicit A(int = 0); };

int main()
{
  A a[1] = { };			// { dg-warning "explicit" "" { target c++11 } }
}