1
0
Fork 0
libnvme/test/misc.cc
Daniel Baumann a3d0cc5ebd
Merging upstream version 1.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-20 08:08:33 +01:00

22 lines
417 B
C++

// 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();
}