summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2012-02-06 23:24:13 +0000
committerDevang Patel <dpatel@apple.com>2012-02-06 23:24:13 +0000
commitf93d0b8b2819f7b4fe8b3cadbc3f94be99aa67f7 (patch)
treefebbb5b1af053ae3189a4db27c4f8030cc9f2d73 /clang/test/CodeGenObjC
parent02cb1715eca56489f9450aef13b818d832f24794 (diff)
downloadbcm5719-llvm-f93d0b8b2819f7b4fe8b3cadbc3f94be99aa67f7.tar.gz
bcm5719-llvm-f93d0b8b2819f7b4fe8b3cadbc3f94be99aa67f7.zip
Relax valid location check. This fixes a clang crash while emitting debug info for properties that are synthesized by the compiler by default.
llvm-svn: 149929
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/debug-info-property4.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/debug-info-property4.m b/clang/test/CodeGenObjC/debug-info-property4.m
new file mode 100644
index 00000000000..619813f6879
--- /dev/null
+++ b/clang/test/CodeGenObjC/debug-info-property4.m
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -fobjc-default-synthesize-properties -masm-verbose -S -g %s -o - | FileCheck %s
+
+// CHECK: AT_APPLE_property_name
+// CHECK: AT_APPLE_property_getter
+// CHECK: AT_APPLE_property_setter
+// CHECK: AT_APPLE_property_attribute
+// CHECK: AT_APPLE_property
+
+
+@interface I1
+@property int p1;
+@end
+
+@implementation I1
+@end
+
+void foo(I1 *ptr) {}
OpenPOWER on IntegriCloud