Skip to content

Commit 3f90202

Browse files
author
Matthias Güdemann
committed
Get pointer selection strategy from java_languaget in unit tests
1 parent 8c3570c commit 3f90202

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*******************************************************************\
2+
3+
Module: Unit test utilities
4+
5+
Author: Diffblue Ltd.
6+
7+
\*******************************************************************/
8+
9+
#include "java_select_pointer.h"
10+
11+
/// Returns the pointer seletion strategy for the given java_bytecode language.
12+
/// \param java_lang The java bytecode language specific
13+
/// \return The language specific pointer selection strategy
14+
const select_pointer_typet &
15+
get_pointer_type_selector_unit(const java_bytecode_languaget &java_lang)
16+
{
17+
return java_lang.get_pointer_type_selector();
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*******************************************************************\
2+
3+
Module: Unit test utilities
4+
5+
Author: Diffblue Ltd.
6+
7+
\*******************************************************************/
8+
9+
/// \file
10+
/// Utility for getting the pointer selection strategy from java_languaget
11+
12+
#ifndef CPROVER_JAVA_TESTING_UTILS_JAVA_SELECT_POINTER
13+
#define CPROVER_JAVA_TESTING_UTILS_JAVA_SELECT_POINTER
14+
15+
#include <java_bytecode/java_bytecode_language.h>
16+
17+
const select_pointer_typet &
18+
get_pointer_type_selector_unit(const java_bytecode_languaget &java_lang);
19+
20+
#endif //CPROVER_JAVA_TESTING_UTILS_JAVA_SELECT_POINTER

0 commit comments

Comments
 (0)