[cfe-commits] r82510 - /cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m

Daniel Dunbar daniel at zuster.org
Mon Sep 21 19:18:40 PDT 2009


Author: ddunbar
Date: Mon Sep 21 21:18:40 2009
New Revision: 82510

URL: http://llvm.org/viewvc/llvm-project?rev=82510&view=rev
Log:
Add test case for PR4894 (it was fixed in LLVM).

Added:
    cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m

Added: cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m?rev=82510&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m (added)
+++ cfe/trunk/test/CodeGenObjC/PR4894-recursive-debug-crash.m Mon Sep 21 21:18:40 2009
@@ -0,0 +1,39 @@
+// RUN: clang-cc -g -emit-llvm %s -o - | FileCheck %s
+// PR4894
+//
+// This test is actually just making sure we can generate the debug info for the
+// return type from im0 without crashing.
+
+ at interface I0 {
+  I0 *_iv0;
+}
+ at end
+ at protocol P0 @end
+
+ at interface I1 @end
+ at implementation I1
+- (I0<P0> *) im0 {
+// CHECK: @"\01-[I1 im0]"
+// CHECK: llvm.dbg.func.start
+  return 0;
+}
+ at end
+
+// FIXME: This was another PR4894 test case, which is crashing somewhere
+// else. PR5025.
+#if 0
+typedef const struct objc_selector {
+  void *sel_id;
+  const char *sel_types;
+} *SEL;
+
+ at interface I2
++(id) dictionary;
+ at end
+
+ at implementation I3;
++(void) initialize {
+  I2 *a0 = [I2 dictionary];
+}
+ at end
+#endif





More information about the cfe-commits mailing list