]> granicus.if.org Git - clang/commitdiff
Restore test. Is for //rdar://8493239
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 1 Oct 2010 21:26:26 +0000 (21:26 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 1 Oct 2010 21:26:26 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115349 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/CodeGenObjC/debug-info-default-synth-ivar.m b/test/CodeGenObjC/debug-info-default-synth-ivar.m
new file mode 100644 (file)
index 0000000..d4b0986
--- /dev/null
@@ -0,0 +1,34 @@
+// RUN: %clang -fobjc-abi-version=3 -fverbose-asm -g -S %s -o - | grep DW_AT_name | count 42
+// rdar://8493239
+
+@class NSString;
+
+@interface InstanceVariablesEverywhereButTheInterface 
+@end
+
+@interface InstanceVariablesEverywhereButTheInterface()
+{
+  NSString *_someString;
+}
+
+@property(readonly) NSString *someString;
+@property(readonly) unsigned long someNumber;
+@end
+
+@implementation InstanceVariablesEverywhereButTheInterface
+{
+  unsigned long _someNumber;
+}
+@synthesize someString = _someString, someNumber = _someNumber;
+@end
+
+@interface AutomaticSynthesis
+{
+  int real_ivar;
+}
+@property(copy) NSString *someString;
+@property unsigned long someNumber;
+@end
+
+@implementation AutomaticSynthesis
+@end