| 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{}; |
nothing calls this directly
no outgoing calls
no test coverage detected