1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
15 lines
250 B
C++
15 lines
250 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
|
|
|
// WARNING: This test may recurse infinitely if failing.
|
|
|
|
struct foo;
|
|
struct bar {
|
|
bar(foo&);
|
|
};
|
|
struct foo {
|
|
bar b;
|
|
foo()
|
|
: b(b) // expected-warning{{field is uninitialized}}
|
|
{}
|
|
};
|