mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
249 B
D
14 lines
249 B
D
|
|
extern (C) struct S { }
|
|
|
|
version (CRuntime_Microsoft)
|
|
static assert(S.sizeof == 4);
|
|
else
|
|
static assert(S.sizeof == 0);
|
|
|
|
static assert(S.alignof == 1);
|
|
|
|
extern (C++) struct T { }
|
|
|
|
static assert(T.sizeof == 1);
|
|
static assert(T.alignof == 1);
|