]> granicus.if.org Git - clang/commitdiff
Add test for PR9927.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 16 May 2011 12:42:39 +0000 (12:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 16 May 2011 12:42:39 +0000 (12:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131403 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjCXX/PR9927.mm [new file with mode: 0644]

diff --git a/test/CodeGenObjCXX/PR9927.mm b/test/CodeGenObjCXX/PR9927.mm
new file mode 100644 (file)
index 0000000..ed503bd
--- /dev/null
@@ -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