Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LDC - the LLVM D compiler (0.16.0-beta2):
- // based on DMD v2.067.1 and LLVM 3.7.0
- // Default target: x86_64-pc-windows-msvc
- //
- // ldc2 main.d -w -g -unittest -m64 -oq
- void main(string[] args)
- {
- }
- align(16) struct some_buf
- {
- align(16):
- long[32] data;
- }
- int somefun(ref some_buf) { return 0; }
- unittest
- {
- import std.stdio;
- some_buf buf;
- writeln(&buf);
- assert((cast(size_t)&buf & cast(size_t)0b1111) == 0);
- void foo()
- {
- writeln("foo");
- //somefun(buf);
- }
- foo();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement