eqv.cc: expansion_want: avoid use of isl_map_n_in
[ppn.git] / tests / copy.cc
blob314bcacbdf1ce0f2a02e4a618e27cad7c2a9f000
1 #include <assert.h>
2 #include "testlib.h"
4 using pdg::PDG;
6 int main(int argc, char *argv[])
8 isl_ctx *ctx = isl_ctx_alloc();
9 PDG *pdg;
11 construct_pdg("testcopy");
12 pdg = get_pn(ctx, "testcopy");
14 assert(pdg->nodes.size() == 3);
16 pdg->free();
17 delete pdg;
19 construct_pdg("testcopy2");
20 pdg = get_pn(ctx, "testcopy2");
22 assert(pdg->nodes.size() == 5);
24 pdg->free();
25 delete pdg;
26 isl_ctx_free(ctx);
28 return 0;