File: misc.cc

package info (click to toggle)
libnvme 1.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: ansic: 35,812; perl: 1,834; sh: 475; python: 194; cpp: 64; makefile: 55
file content (22 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
}