[cfe-commits] r124034 - /cfe/trunk/test/SemaCXX/crashes.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Jan 22 07:34:07 PST 2011


Author: rafael
Date: Sat Jan 22 09:34:07 2011
New Revision: 124034

URL: http://llvm.org/viewvc/llvm-project?rev=124034&view=rev
Log:
Add test from PR9026.

Modified:
    cfe/trunk/test/SemaCXX/crashes.cpp

Modified: cfe/trunk/test/SemaCXX/crashes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/crashes.cpp?rev=124034&r1=124033&r2=124034&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/crashes.cpp (original)
+++ cfe/trunk/test/SemaCXX/crashes.cpp Sat Jan 22 09:34:07 2011
@@ -75,5 +75,23 @@
       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);
+  }
 }





More information about the cfe-commits mailing list