Skip to content

Commit

Permalink
Attempt to fix the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Jan 2, 2018
1 parent 2d245ec commit 7c6f578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/compilable/staticforeach.d
Expand Up @@ -120,10 +120,12 @@ static foreach(member;__traits(allMembers,S)){
}

// print prime numbers using overload sets as state variables.
/+
static assert(is(typeof(bad57)));
static assert(!is(typeof(bad53)));
static foreach(x;iota(2,100)){
enum foo;
static foreach(y;iota(2,x)){
static if(!(x%y)){
mixin("void bad"~to!string(x)~"();");
Expand All @@ -136,6 +138,7 @@ static foreach(x;iota(2,100)){
static assert(iota(2,x).any!(y=>!(x%y)));
}
}
+/


alias Seq(T...)=T;
Expand Down
2 changes: 1 addition & 1 deletion test/fail_compilation/fail313.d
Expand Up @@ -25,7 +25,7 @@ void test2()
core.stdc.stdio.printf("");
}

void test2()
void test3()
{
imports.pkg313.bug();
}

0 comments on commit 7c6f578

Please sign in to comment.