]> granicus.if.org Git - clang/commitdiff
Further simplify test case from r186894
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 23 Jul 2013 01:01:17 +0000 (01:01 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 23 Jul 2013 01:01:17 +0000 (01:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186905 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/block-byref-debuginfo.m

index fe5af16623ec0ede0859782e82ad55a71dd16725..7c1571f48bd0aa7e371f449a71ff7c1a7994ee08 100644 (file)
@@ -4,20 +4,10 @@
 // expression (256) that locates it inside of the byref descriptor:
 // CHECK: metadata !"foo", i32 0, i64 {{[0-9]+}}, i64 64, i64 256, i32 0, metadata
 
-@interface NSObject {
-}
-@end
-typedef struct Buffer *BufferRef;
-typedef struct Foo_s {
-    unsigned char *data;
-} Foo;
-@interface FileReader : NSObject {
-}
-@end
-@implementation FileReader
-- (BufferRef) bar:(int *)index
-{
-  __attribute__((__blocks__(byref))) Foo foo;
+struct Foo {
+  unsigned char *data;
+};
+int func() {
+  __attribute__((__blocks__(byref))) struct Foo foo;
   return 0;
 }
-@end