blob: e6189d9d113f55bf9da81c5a324d705cdd56e669 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// test multiple uses of the threadPool
#include <assert.h>
#include <wasm.h>
#include <ir/cost.h>
using namespace wasm;
int main()
{
// Some optimizations assume that the cost of a get is zero, e.g. local-cse.
LocalGet get;
assert(CostAnalyzer(&get).cost == 0);
std::cout << "Success.\n";
return 0;
}
|