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

Function fallThroughAtrrTest

tests/AttributesTest.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 [[deprecated("Replaced by bar, which has an improved interface")]] void deprecatedWithMsgFunc();
20
21 void fallThroughAtrrTest(int n)
22 {
23 switch(n) {
24 case 1: [[fallthrough]];
25 case 2: break;
26 }
27 }
28
29 struct [[nodiscard]] nodiscardTest{};
30 struct [[nodiscard("just a test")]] nodiscardWithMsgTest{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected