Rafael Espindola | 568586f | 2010-03-21 22:56:43 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | class bar; // expected-note {{forward declaration of 'bar'}} | ||||
3 | struct zed { | ||||
4 | bar g; // expected-error {{field has incomplete type}} | ||||
5 | }; | ||||
6 | class baz { | ||||
7 | zed h; | ||||
8 | }; | ||||
9 | void f() { | ||||
10 | enum { | ||||
11 | e = sizeof(baz) | ||||
12 | }; | ||||
13 | } |