summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/d/casts.d
blob: 42d54916378344e92cdab45fb0c0918a1a787ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
void foo(int a)
{
   char ch;

   ch = cast(char) a;
   ch = cast(char) 45;
   ch = (char) a; // not a d cast
   ch = (int)45;
   ch = cast(foo)*bar;
   ch = cast(foo)-bar;
   ch = cast(foo)+45;
   ch = cast(foo)&45;
}