1
0
Fork 0

Adding upstream version 1.12.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-20 08:08:29 +01:00
parent 9c1dc68a45
commit a47f11de04
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
1005 changed files with 9469 additions and 1830 deletions

22
test/misc.cc Normal file
View file

@ -0,0 +1,22 @@
// 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();
}