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
-@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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits