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