mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-09 17:04:12 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
19
tests/mini/align1.d
Normal file
19
tests/mini/align1.d
Normal file
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user