]> granicus.if.org Git - clang/commitdiff
Add test from PR9026.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 22 Jan 2011 15:34:07 +0000 (15:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 22 Jan 2011 15:34:07 +0000 (15:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124034 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/crashes.cpp

index 9b0f19e74637926765d71c9275d95189ca979c4c..c75b0401fed69af2460c84babb53613a8aa09ec9 100644 (file)
@@ -75,5 +75,23 @@ namespace PR9007 {
       yyy = sizeof(struct foo*)
     };
     foo *xxx();
-};
+  };
+}
+
+namespace PR9026 {
+  class InfallibleTArray {
+  };
+  class Variant;
+  class CompVariant {
+    operator const InfallibleTArray&() const;
+  };
+  class Variant {
+    operator const CompVariant&() const;
+  };
+  void     Write(const Variant& __v);
+  void     Write(const InfallibleTArray& __v);
+  Variant x;
+  void Write2() {
+    Write(x);
+  }
 }