repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
PR6618.cpp
blob
10d4dc87b0a3bf39052e96250dc217dbc3d37043
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
}