Skip to content

Commit 373367c

Browse files
CPPCheck
1 parent ef04b8d commit 373367c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cppcheck/test.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
void unusedFunction() {
5+
int x = 42;
6+
}
7+
8+
int main() {
9+
int a;
10+
int b = a + 5;
11+
int* ptr = NULL;
12+
if (ptr) {
13+
cout << *ptr << endl;
14+
}
15+
return 0;
16+
}
17+

0 commit comments

Comments
 (0)