Skip to content

Commit ee3e7e3

Browse files
authored
Merge pull request #1 from geoffw0/initnotrun .expected
CPP: Add .expected file for the InitialisationNotRun test
2 parents 75e545a + c0638a5 commit ee3e7e3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| test.cpp:12:16:12:17 | g1 | Initialization code for 'g1' is never run. |
2+
| test.cpp:14:23:14:24 | g3 | Initialization code for 'g3' is never run. |

cpp/ql/test/query-tests/Critical/InitialisationNotRun/test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#include <string.h>
1+
// --- stubs ---
2+
3+
char *strcpy(char *dest, const char *src);
4+
5+
// --- tests ---
26

37
class GlobalStorage {
48
public:

0 commit comments

Comments
 (0)