aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGenObjCXX/PR9927.mm18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/PR9927.mm b/test/CodeGenObjCXX/PR9927.mm
new file mode 100644
index 0000000000..ed503bd8be
--- /dev/null
+++ b/test/CodeGenObjCXX/PR9927.mm
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -emit-llvm-only %s
+
+// Test that we don't crash.
+
+class allocator {
+};
+class basic_string {
+struct _Alloc_hider : allocator {
+char* _M_p;
+};
+_Alloc_hider _M_dataplus;
+};
+@implementation
+CrashReporterUI -(void)awakeFromNib {
+}
+-(void)showCrashUI:(const basic_string&)dumpfile {
+}
+@end