Files
swift-mirror/test/stdlib/Inputs/tail_allocated_c_array.h
Arnold Schwaighofer 7a54927b03 IRGen: Fix MemoryLayout::offset(of:) for tail allocated C arrays
There is no storage but an offset.

rdar://51194713
2019-10-15 14:04:31 -07:00

8 lines
110 B
C

#include <stdint.h>
typedef struct foo {
uint8_t a;
uint16_t b;
uint8_t tailallocatedarray[0];
} foo;