[cfe-commits] r153715 - /cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m

Eric Christopher echristo at apple.com
Thu Mar 29 18:07:51 PDT 2012


Author: echristo
Date: Thu Mar 29 20:07:51 2012
New Revision: 153715

URL: http://llvm.org/viewvc/llvm-project?rev=153715&view=rev
Log:
Testcase for the previous commit.

Added:
    cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m

Added: cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m?rev=153715&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m (added)
+++ cfe/trunk/test/CodeGenObjC/debug-info-synthesis.m Thu Mar 29 20:07:51 2012
@@ -0,0 +1,34 @@
+// RUN: %clang_cc1 -emit-llvm -g -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
+# 1 "foo.m" 1
+# 1 "foo.m" 2
+# 1 "./foo.h" 1
+ at interface NSObject {
+  struct objc_object *isa;
+}
+ at end
+ at class NSDictionary;
+
+ at interface Foo : NSObject {}
+ at property (strong, nonatomic) NSDictionary *dict;
+ at end
+# 2 "foo.m" 2
+
+
+
+
+ at implementation Foo
+ at synthesize dict = _dict;
+
+- (void) bork {
+}
+ at end
+
+int main(int argc, char *argv[]) {
+  @autoreleasepool {
+    Foo *f = [Foo new];
+    [f bork];
+  }
+}
+
+// CHECK: !11 = metadata !{i32 {{.*}}, metadata !"./foo.h"
+// CHECK: !29 = metadata !{i32 {{.*}}, i32 0, metadata !11, metadata !"-[Foo dict]", metadata !"-[Foo dict]", metadata !"", metadata !11, i32 8, metadata !30, i1 true, i1 true, i32 0, i32 0, null, i32 320, i1 false, %1* (%0*, i8*)* @"\01-[Foo dict]", null, null, metadata !32} ; [ DW_TAG_subprogram ]





More information about the cfe-commits mailing list