This shows the difference between Swift & C struct layout (see Swift ABI doc.).
To build & run:
mkdir ./.build
clang repr.c -o .build/repr && .build/repr
swiftc Repr.swift -I . -o .build/Repr && .build/Repr
This shows the difference between Swift & C struct layout (see Swift ABI doc.).
To build & run:
mkdir ./.build
clang repr.c -o .build/repr && .build/repr
swiftc Repr.swift -I . -o .build/Repr && .build/Repr