Permalink
Browse files

Add test case for Issue 11805 - Removal of Bool has critically broken…

… expression evaluation
  • Loading branch information...
yebblies committed Dec 23, 2013
1 parent 2aaf5eb commit 933d1470975a2d7e9d4cf14d5d5763179bcf3128
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/runnable/xtest46.d
View
@@ -3481,6 +3481,19 @@ void test11238()
/***************************************************/
void test11805()
{
int i;
i = 47;
i = 1 && i;
assert(i == 1);
i = 0 || i;
assert(i == 1);
}
/***************************************************/
class A2540
{
int a;
@@ -7072,6 +7085,7 @@ int main()
test8819();
test8917();
test8945();
test11805();
test163();
test9428();
test9477();

0 comments on commit 933d147

Please sign in to comment.