mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-27 14:49:27 +00:00
be7ce4110e
This reverts commit e96515433d71684a5a9a876c7af93530e11e160b.
16 lines
259 B
C++
16 lines
259 B
C++
// Test for C++20 [[likely]] and [[unlikely]] attributes.
|
|
|
|
int main(int argc, char **)
|
|
{
|
|
#if __cplusplus < 202002L
|
|
deliberately_fail(because, older, C++, standard);
|
|
#endif
|
|
|
|
int x = 0;
|
|
if (argc == 1) [[likely]]
|
|
x = 0;
|
|
else
|
|
x = 1;
|
|
return x;
|
|
}
|