| 687 | ASSERT_EQUALS(library.deallocId("free"), library.allocId("foo")); |
| 688 | } |
| 689 | void memory3() const { |
| 690 | constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n" |
| 691 | "<def>\n" |
| 692 | " <memory>\n" |
| 693 | " <alloc arg=\"5\" init=\"false\">CreateX</alloc>\n" |
| 694 | " <dealloc arg=\"2\">DeleteX</dealloc>\n" |
| 695 | " </memory>\n" |
| 696 | "</def>"; |
| 697 | |
| 698 | Library library; |
| 699 | ASSERT(LibraryHelper::loadxmldata(library, xmldata, sizeof(xmldata))); |
| 700 | ASSERT(library.functions().empty()); |
| 701 | |
| 702 | const Library::AllocFunc* af = library.getAllocFuncInfo("CreateX"); |
| 703 | ASSERT(af && af->arg == 5 && !af->initData); |
| 704 | const Library::AllocFunc* df = library.getDeallocFuncInfo("DeleteX"); |
| 705 | ASSERT(df && df->arg == 2); |
| 706 | } |
| 707 | |
| 708 | void resource() const { |
| 709 | constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n" |
nothing calls this directly
no test coverage detected