Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
linker/jvm/src/test/scala/org/scalajs/linker/GCCLinkerTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Scala.js (https://www.scala-js.org/) | ||
* | ||
* Copyright EPFL. | ||
* | ||
* Licensed under Apache License 2.0 | ||
* (https://www.apache.org/licenses/LICENSE-2.0). | ||
* | ||
* See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
*/ | ||
|
||
package org.scalajs.linker | ||
|
||
import org.junit.Test | ||
|
||
import org.scalajs.junit.async._ | ||
|
||
import org.scalajs.linker.interface.StandardConfig | ||
|
||
import org.scalajs.linker.testutils.LinkingUtils._ | ||
|
||
class GCCLinkerTest { | ||
import scala.concurrent.ExecutionContext.Implicits.global | ||
|
||
@Test | ||
def linkEmpty(): AsyncResult = await { | ||
/* Check a degenerate case where there are not public modules at all. | ||
* See the special check on ModuleSplitter for details. | ||
*/ | ||
testLink(Nil, Nil, config = StandardConfig().withClosureCompiler(true)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters