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 | 362ed2a95b70aaea4869bfa9ecaf581a6c180b40 (patch) | |
tree | 731a23e9494b5903264add5f60065034ff0a9ca1 /test/CodeGenObjC | |
parent | d79ed43d2bb9dd4a54889450ecff9299a9d4d1bc (diff) |
Relax valid location check. This fixes a clang crash while emitting debug info for properties that are synthesized by the compiler by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/debug-info-property4.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenObjC/debug-info-property4.m b/test/CodeGenObjC/debug-info-property4.m new file mode 100644 index 0000000000..619813f687 --- /dev/null +++ b/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) {} |