diff options
author | Devang Patel <dpatel@apple.com> | 2012-02-06 23:24:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-02-06 23:24:13 +0000 |
commit | f93d0b8b2819f7b4fe8b3cadbc3f94be99aa67f7 (patch) | |
tree | febbb5b1af053ae3189a4db27c4f8030cc9f2d73 /clang/test/CodeGenObjC | |
parent | 02cb1715eca56489f9450aef13b818d832f24794 (diff) | |
download | bcm5719-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.m | 17 |
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) {} |