forked from OSchip/llvm-project
Expand test of C++0x [class.copymove]p15 to make sure we're actually calling the copy constructor of a base/member from an explicitly-defaulted copy constructor, rather than the default constructor
llvm-svn: 137220
This commit is contained in:
parent
5c076db18e
commit
9996c8fe01
|
@ -8,4 +8,11 @@ namespace PR10622 {
|
|||
void find_or_insert(const foo& __obj) {
|
||||
foo x(__obj);
|
||||
}
|
||||
|
||||
struct bar : foo {
|
||||
bar(const bar&) = default;
|
||||
};
|
||||
void test_bar(const bar &obj) {
|
||||
bar obj2(obj);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue