r186901 - Simplify testcase.

Adrian Prantl aprantl at apple.com
Mon Jul 22 17:21:49 PDT 2013


Author: adrian
Date: Mon Jul 22 19:21:48 2013
New Revision: 186901

URL: http://llvm.org/viewvc/llvm-project?rev=186901&view=rev
Log:
Simplify testcase.
rdar://problem/14386148

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=186901&r1=186900&r2=186901&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m (original)
+++ cfe/trunk/test/CodeGenObjC/block-byref-debuginfo.m Mon Jul 22 19:21:48 2013
@@ -4,35 +4,20 @@
 // 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
 
-typedef unsigned char uint8_t;
- at protocol NSObject
- at end
- at interface NSObject <NSObject> {
+ at interface NSObject {
 }
 @end
-typedef void (^dispatch_block_t)(void);
-typedef long dispatch_once_t;
-static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__)) __attribute__((__nothrow__))
-void
-_dispatch_once(dispatch_once_t *predicate, dispatch_block_t block)
-{
-};
 typedef struct Buffer *BufferRef;
 typedef struct Foo_s {
-    uint8_t *data;
+    unsigned char *data;
 } Foo;
- at protocol DelegateProtocol <NSObject>
- at end
- at interface FileReader : NSObject <DelegateProtocol>
-{
- dispatch_once_t offset;
+ at interface FileReader : NSObject {
 }
 @end
 @implementation FileReader
 - (BufferRef) bar:(int *)index
 {
   __attribute__((__blocks__(byref))) Foo foo;
-  _dispatch_once(&offset, ^{});
   return 0;
 }
 @end





More information about the cfe-commits mailing list