Instead of having a test method per use case, we have a text file containing the expected generated code and a optional text file containing the expected compiler messages.
We are principally AOT compiling them to test the AOT compiler.
我们使用AOT编译它们主要是为了测试aot编译器。
3
But often, the result is a do-nothing benchmark, which the compiler can optimize away partially or completely without you realizing it, making the test run faster than expected.