mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-25 16:45:21 +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:
12
tests/mini/condexp1.d
Normal file
12
tests/mini/condexp1.d
Normal file
@@ -0,0 +1,12 @@
|
||||
module condexp1;
|
||||
|
||||
void main()
|
||||
{
|
||||
char[] a = "hello";
|
||||
char[] b = "world";
|
||||
int i = 42;
|
||||
{
|
||||
char[] c = i > 50 ? b : a;
|
||||
assert(c is a);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user