You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
355 B
28 lines
355 B
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// <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;
|
|
}
|