blob: 6416336c6eedbb526e21a13195861fa73043245f [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
Sean Hunt71a682f2011-05-18 03:41:58 +00002
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};