repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
defaulted-ctor-loop.cpp
blob
bc8dfdaa3cf2976eeccca618e225e78b9b03678f
1
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3
// WARNING: This test may recurse infinitely if failing.
4
5
struct
foo
;
6
struct
bar
{
7
bar
(
foo
&);
8
};
9
struct
foo
{
10
bar b
;
11
foo
()
12
:
b
(
b
)
// expected-warning{{field 'b' is uninitialized}}
13
{}
14
};