summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/init6.C
blob: 65a07803070fd8037576fe9bf7725e7e8e6ae827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-additional-options "-Wno-return-type" }
// GROUPS passed initialization
class Vector {
        double  *v;
        int             size;

public:
        Vector(int n);
        ~Vector();
};

exmpl() { Vector x(8)[16]; }// { dg-error "" } .*