MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / likelyTest

Function likelyTest

tests/AttributesTest.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37// C++20
38#if 0
39int likelyTest(int i) {
40 switch(i) {
41 [[unlikely]] case 1: return 2;
42 [[likely]] case 2: return 1;
43 }
44 return 2;
45}
46#endif
47
48 // empty class

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected