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