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:
Douglas Gregor 2011-08-10 16:59:20 +00:00
parent 5c076db18e
commit 9996c8fe01
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}
}