Mercurial > projects > dang
view tests/code/func_1.d @ 188:b3e0729c8524
Extra test
author | Anders Halager <halager@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 12:55:38 +0200 |
parents | a49bb982a7b0 |
children |
line wrap: on
line source
int main() { testStruct t; t.x = 5; return t.x; } testStruct m(testStruct t) { t.x = t.x - 5; return t; } struct testStruct { int x; }