1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3 // WARNING: This test may recurse infinitely if failing.
4
5 struct foo;
6 struct bar {
7 bar(foo&);
8 };
9 struct foo {
10 bar b;
11 foo()
12 : b(b) // expected-warning{{field 'b' is uninitialized}}
13 {}
14 };
15