/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libnvme/tests/misc.cc
22 строки
417 B
Daniel Wagner
libnvme: rename test to tests
10 авг 2026, 19:54
10 авг 2026, 19:54
50f3246
Код
Авторство
О чём код?
// SPDX-License-Identifier: LGPL-2.1-or-later /** * This file is part of libnvme. * Copyright (c) 2025 Daniel Wagner, SUSE LLC */ #include <algorithm> #include <libnvme.h> static int minmax_test() { /* * Ensure libnvme doesn't spoil the namespace, e.g. by exposing a * min/max macro. */ return !(std::min(1, 2) == 1 && std::max(1, 2) == 2); } int main(int argc, char *argv[]) { return minmax_test(); }