blob: 05ded4ad9b3c19400a031790b29fc89a4cecaf8a [file] [log] [blame]
Douglas Gregorddb21472011-11-02 23:04:16 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// <rdar://problem/10228639>
4class Foo {
5 ~Foo();
6 Foo(const Foo&);
7public:
8 Foo(int);
9};
10
11class Bar {
12 int foo_count;
13 Foo foos[0];
14 Foo foos2[0][2];
15 Foo foos3[2][0];
16
17public:
18 Bar(): foo_count(0) { }
19 ~Bar() { }
20};
21
22void testBar() {
23 Bar b;
24 Bar b2(b);
25 b = b2;
26}