blob: e6189d9d113f55bf9da81c5a324d705cdd56e669 [file] [log] [blame] [edit]
// 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;
}