Skip to content

Commit 4b83a91

Browse files
author
thk123
committed
Added unit tests for the does_remove_const class
1 parent 14fc023 commit 4b83a91

File tree

3 files changed

+400
-0
lines changed

3 files changed

+400
-0
lines changed

src/analyses/does_remove_const.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#define CPROVER_ANALYSES_DOES_REMOVE_CONST_H
1313

1414
#include <util/type.h>
15+
#include <util/namespace.h>
1516

1617
class goto_programt;
1718

@@ -29,6 +30,8 @@ class does_remove_constt
2930

3031
const goto_programt &goto_program;
3132
const namespacet &ns;
33+
34+
friend class does_remove_const_testt;
3235
};
3336

3437
#endif // CPROVER_ANALYSES_DOES_REMOVE_CONST_H

unit/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.PHONY: all cprover.dir test
22

33
SRC = unit_tests.cpp \
4+
analyses/does_remove_const/does_expr_lose_const.cpp \
45
catch_example.cpp \
56
# Empty last line
67

0 commit comments

Comments
 (0)