File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
c/common/test/rules/deadcode Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- | test.c:20 :3:20 :27 | declaration | This statement is dead code. |
2
- | test.c:21 :3:21 :12 | ExprStmt | This statement is dead code. |
3
- | test.c:22 :3:22 :12 | ExprStmt | This statement is dead code. |
4
- | test.c:24 :3:26 :3 | if (...) ... | This statement is dead code. |
5
- | test.c:36 :3:37 :3 | if (...) ... | This statement is dead code. |
6
- | test.c:39 :3:39 :4 | { ... } | This statement is dead code. |
7
- | test.c:40 :3:42 :3 | { ... } | This statement is dead code. |
8
- | test.c:56 :6:57 :3 | { ... } | This statement is dead code. |
9
- | test.c:67 :46:68 :3 | { ... } | This statement is dead code. |
10
- | test.c:71 :3:71 :8 | ExprStmt | This statement is dead code. |
11
- | test.c:73 :3:73 :21 | ExprStmt | This statement is dead code. |
1
+ | test.c:18 :3:18 :27 | declaration | This statement is dead code. |
2
+ | test.c:19 :3:19 :12 | ExprStmt | This statement is dead code. |
3
+ | test.c:20 :3:20 :12 | ExprStmt | This statement is dead code. |
4
+ | test.c:22 :3:24 :3 | if (...) ... | This statement is dead code. |
5
+ | test.c:34 :3:35 :3 | if (...) ... | This statement is dead code. |
6
+ | test.c:37 :3:37 :4 | { ... } | This statement is dead code. |
7
+ | test.c:38 :3:40 :3 | { ... } | This statement is dead code. |
8
+ | test.c:54 :6:55 :3 | { ... } | This statement is dead code. |
9
+ | test.c:65 :46:66 :3 | { ... } | This statement is dead code. |
10
+ | test.c:69 :3:69 :8 | ExprStmt | This statement is dead code. |
11
+ | test.c:71 :3:71 :21 | ExprStmt | This statement is dead code. |
Original file line number Diff line number Diff line change 1
1
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
2
2
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
3
- // Define true/false for compatibility with C++ test cases
4
- #define false 0
5
- #define true 1
3
+ #include <stdbool.h>
6
4
7
5
int may_have_side_effects ();
8
6
int no_side_effects (int x ) { return 1 + 2 ; }
You can’t perform that action at this time.
0 commit comments