r186905 - Further simplify test case from r186894

David Blaikie dblaikie at gmail.com
Mon Jul 22 18:01:17 PDT 2013


Author: dblaikie
Date: Mon Jul 22 20:01:17 2013
New Revision: 186905

URL: http://llvm.org/viewvc/llvm-project?rev=186905&view=rev
Log:
Further simplify test case from r186894

Modified:
    cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m

Modified: cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m?rev=186905&r1=186904&r2=186905&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m (original)
+++ cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m Mon Jul 22 20:01:17 2013
@@ -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
 
- at interface NSObject {
-}
- at end
-typedef struct Buffer *BufferRef;
-typedef struct Foo_s {
-    unsigned char *data;
-} Foo;
- at interface FileReader : NSObject {
-}
- at end
- at 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;
 }
- at end





More information about the cfe-commits mailing list