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