mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
20 lines
257 B
D
20 lines
257 B
D
module tangotests.align1;
|
|
|
|
extern(C) int printf(char*, ...);
|
|
|
|
struct TLA
|
|
{
|
|
char[3] tla;
|
|
char[] toString() { return tla; }
|
|
void dump()
|
|
{
|
|
printf("%.*s\n", 3, tla.ptr);
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
TLA fbi = TLA("FBI");
|
|
fbi.dump();
|
|
}
|