Adding upstream version 1.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9c1dc68a45
commit
a47f11de04
1005 changed files with 9469 additions and 1830 deletions
22
test/misc.cc
Normal file
22
test/misc.cc
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue