summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/aggr4.C
blob: 7120e68cd7ec8cc7416d915398e1cafae2c25282 (plain)
1
2
3
4
5
6
7
struct A
{
  int i;
};

A a1 = { 1 };			// ok
A a2 = { a1 };			// { dg-error "cannot convert" }