2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
2011-05-18 11:41:58 +08:00
|
|
|
|
|
|
|
// WARNING: This test may recurse infinitely if failing.
|
|
|
|
|
|
|
|
struct foo;
|
|
|
|
struct bar {
|
|
|
|
bar(foo&);
|
|
|
|
};
|
|
|
|
struct foo {
|
|
|
|
bar b;
|
|
|
|
foo()
|
2012-09-21 16:58:33 +08:00
|
|
|
: b(b) // expected-warning{{field 'b' is uninitialized}}
|
2011-05-18 11:41:58 +08:00
|
|
|
{}
|
|
|
|
};
|