blob: f51ca72b6ae375333ca955d7aacd246667aa3b2f (
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.
GetLocal get;
assert(CostAnalyzer(&get).cost == 0);
std::cout << "Success.\n";
return 0;
}
|