]> granicus.if.org Git - clang/commitdiff
New test case.
authorDevang Patel <dpatel@apple.com>
Sat, 4 Feb 2012 01:30:45 +0000 (01:30 +0000)
committerDevang Patel <dpatel@apple.com>
Sat, 4 Feb 2012 01:30:45 +0000 (01:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149738 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/debug-info-property3.m [new file with mode: 0644]

diff --git a/test/CodeGenObjC/debug-info-property3.m b/test/CodeGenObjC/debug-info-property3.m
new file mode 100644 (file)
index 0000000..b5edee0
--- /dev/null
@@ -0,0 +1,12 @@
+// RUN: %clang -S -emit-llvm -g %s -o - | FileCheck %s
+
+// CHECK: metadata !"p1", metadata !"p1", metadata !"setP1:", i32 2316} ; [ DW_TAG_APPLE_property ]
+@interface I1
+@property int p1;
+@end
+
+@implementation I1
+@synthesize p1;
+@end
+
+void foo(I1 *iptr) {}