]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/SemaCXX/PR6618.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / SemaCXX / PR6618.cpp
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2class bar; // expected-note {{forward declaration of 'bar'}}
3struct zed {
4 bar g; // expected-error {{field has incomplete type}}
5};
6class baz {
7 zed h;
8};
9void f() {
10 enum {
11 e = sizeof(baz)
12 };
13}