blob: 05ded4ad9b3c19400a031790b29fc89a4cecaf8a [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// <rdar://problem/10228639>
class Foo {
~Foo();
Foo(const Foo&);
public:
Foo(int);
};
class Bar {
int foo_count;
Foo foos[0];
Foo foos2[0][2];
Foo foos3[2][0];
public:
Bar(): foo_count(0) { }
~Bar() { }
};
void testBar() {
Bar b;
Bar b2(b);
b = b2;
}