blob: 6a41972cf75a4941480c84cc21d9f4c1e0f051bd [file] [log] [blame]
Sean Hunt71a682f2011-05-18 03:41:58 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
2
3// WARNING: This test may recurse infinitely if failing.
4
5struct foo;
6struct bar {
7 bar(foo&);
8};
9struct foo {
10 bar b;
11 foo()
12 : b(b) // expected-warning{{field is uninitialized}}
13 {}
14};