1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc // <rdar://problem/10228639> 5*f4a2713aSLionel Sambuc class Foo { 6*f4a2713aSLionel Sambuc ~Foo(); 7*f4a2713aSLionel Sambuc Foo(const Foo&); 8*f4a2713aSLionel Sambuc public: 9*f4a2713aSLionel Sambuc Foo(int); 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc class Bar { 13*f4a2713aSLionel Sambuc int foo_count; 14*f4a2713aSLionel Sambuc Foo foos[0]; 15*f4a2713aSLionel Sambuc Foo foos2[0][2]; 16*f4a2713aSLionel Sambuc Foo foos3[2][0]; 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc public: Bar()19*f4a2713aSLionel Sambuc Bar(): foo_count(0) { } ~Bar()20*f4a2713aSLionel Sambuc ~Bar() { } 21*f4a2713aSLionel Sambuc }; 22*f4a2713aSLionel Sambuc testBar()23*f4a2713aSLionel Sambucvoid testBar() { 24*f4a2713aSLionel Sambuc Bar b; 25*f4a2713aSLionel Sambuc Bar b2(b); 26*f4a2713aSLionel Sambuc b = b2; 27*f4a2713aSLionel Sambuc } 28