1
0
Fork 0
mirror of https://github.com/melonDS-emu/melonDS.git synced 2025-03-06 21:00:31 +01:00
melonDS/test/cases/basic/MultipleNDSCreatedInDifferentOrder.cpp
Jesse Talavera-Greenberg 549cd4a5a1 First crack at a test suite
2023-12-06 16:21:02 -05:00

34 lines
No EOL
1.1 KiB
C++

/*
Copyright 2016-2023 melonDS team
This file is part of melonDS.
melonDS is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with melonDS. If not, see http://www.gnu.org/licenses/.
*/
#include <memory>
#include "NDS.h"
int main()
{
// volatile so it's not optimized out
auto nds1 = std::make_unique<volatile melonDS::NDS>();
auto nds2 = std::make_unique<volatile melonDS::NDS>();
auto nds3 = std::make_unique<volatile melonDS::NDS>();
auto nds4 = std::make_unique<volatile melonDS::NDS>();
nds3 = nullptr;
nds1 = nullptr;
nds4 = nullptr;
nds2 = nullptr;
}