mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

This makes the wording more informative, and consistent with the other warnings about uninitialized variables. Also, me and David who reviewed this couldn't figure out why we would need to do a lookup to get the name of the variable; so just print the name directly. llvm-svn: 164366
15 lines
254 B
C++
15 lines
254 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 'b' is uninitialized}}
|
|
{}
|
|
};
|