+// TEST_CONFIG GC=1 SDK=macos
+
#include "test.h"
#include <string.h>
#include <objc/objc-runtime.h>
@class NSObject;
-void printlayout(const char *name, const char *layout)
+void printlayout(const char *name, const uint8_t *layout)
{
testprintf("%s: ", name);
return;
}
- const char *c;
+ const uint8_t *c;
for (c = layout; *c; c++) {
testprintf("%02x ", *c);
}
id id1;
NSObject *o1;
__strong void *v1;
- __strong intptr_t i1;
- __strong long l1;
+ __strong intptr_t *i1;
+ __strong long *l1;
/* fixme
struct {
id id1;
__weak id id1;
__weak NSObject *o1;
__weak void *v1;
- __weak intptr_t i1;
- __weak long l1;
+ __weak intptr_t *i1;
+ __weak long *l1;
/* fixme
struct {
__weak id id1;
int main()
{
- const char *layout;
+ const uint8_t *layout;
layout = class_getIvarLayout(objc_getClass("AllScanned"));
printlayout("AllScanned", layout);