]> granicus.if.org Git - clang/commitdiff
Expand test of C++0x [class.copymove]p15 to make sure we're actually calling the...
authorDouglas Gregor <dgregor@apple.com>
Wed, 10 Aug 2011 16:59:20 +0000 (16:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 10 Aug 2011 16:59:20 +0000 (16:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137220 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/special/class.copy/p15-0x.cpp

index 42c83d5b4e51a8e3fa87b640f417aca79fe16e35..91cea03f585395649908a987ec119b40dd853e20 100644 (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);
+  }
 }