File tree 7 files changed +20
-9
lines changed
regression/goto-cc-cbmc-shared-options
7 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
if (WIN32 )
2
2
set (is_windows true )
3
- set (exclude_broken_windows_tests -X winbug)
4
3
else ()
5
4
set (is_windows false )
6
- set (exclude_broken_windows_tests "" )
7
5
endif ()
8
6
9
7
add_test_pl_tests(
10
- "${CMAKE_CURRENT_SOURCE_DIR} /chain.sh $<TARGET_FILE:goto-cc> $<TARGET_FILE:cbmc> ${is_windows} " ${exclude_broken_windows_tests}
8
+ "${CMAKE_CURRENT_SOURCE_DIR} /chain.sh $<TARGET_FILE:goto-cc> $<TARGET_FILE:cbmc> ${is_windows} "
11
9
)
Original file line number Diff line number Diff line change 1
- CORE winbug
1
+ CORE
2
2
test.c
3
3
--function main --object-bits 6
4
4
^EXIT=10$
Original file line number Diff line number Diff line change 1
- CORE winbug
1
+ CORE
2
2
test.c
3
3
--function main --object-bits 10
4
4
^EXIT=10$
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Author: Daniel Kroening
25
25
// / \return none
26
26
// see
27
27
// http://infocenter.arm.com/help/topic/com.arm.doc.dui0472c/Cchbggjb.html
28
-
28
+ // clang-format off
29
29
static const char *options_no_arg[]=
30
30
{
31
31
// goto-cc-specific
@@ -44,6 +44,9 @@ static const char *options_no_arg[]=
44
44
" --no-arch" ,
45
45
" --no-library" ,
46
46
" --string-abstraction" ,
47
+ " --validate-goto-model" ,
48
+ " -?" ,
49
+ " --export-file-local-symbols" ,
47
50
48
51
// armcc
49
52
" --help" ,
@@ -201,7 +204,6 @@ static const char *options_no_arg[]=
201
204
nullptr
202
205
};
203
206
204
- // clang-format off
205
207
static const std::vector<std::string> options_with_prefix
206
208
{
207
209
" --project=" ,
@@ -256,6 +258,9 @@ static const std::vector<std::string> options_with_arg
256
258
// goto-cc specific
257
259
" --verbosity" ,
258
260
" --function" ,
261
+ " --print-rejected-preprocessed-source" ,
262
+ " --mangle-suffix" ,
263
+ " --object-bits" ,
259
264
260
265
// armcc-specific
261
266
" -D" ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Author: Michael Tautschnig
16
16
17
17
#include < util/prefix.h>
18
18
19
+ // clang-format off
19
20
// non-bcc options
20
21
const char *goto_bcc_options_with_argument[]=
21
22
{
@@ -24,6 +25,8 @@ const char *goto_bcc_options_with_argument[]=
24
25
" --native-compiler" ,
25
26
" --native-linker" ,
26
27
" --print-rejected-preprocessed-source" ,
28
+ " --mangle-suffix" ,
29
+ " --object-bits" ,
27
30
nullptr
28
31
};
29
32
@@ -66,6 +69,7 @@ const char *bcc_options_with_argument[]=
66
69
" -t" ,
67
70
nullptr
68
71
};
72
+ // clang-format on
69
73
70
74
bool bcc_cmdlinet::parse (int argc, const char **argv)
71
75
{
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ const char *non_ms_cl_options[]=
48
48
" --validate-goto-model" ,
49
49
" --export-file-local-symbols" ,
50
50
" --mangle-suffix" ,
51
+ " --object-bits" ,
51
52
nullptr
52
53
};
53
54
// clang-format on
@@ -63,7 +64,7 @@ bool ms_cl_cmdlinet::parse(const std::vector<std::string> &arguments)
63
64
64
65
if (
65
66
arguments[i] == " --verbosity" || arguments[i] == " --function" ||
66
- arguments[i] == " --mangle-suffix" )
67
+ arguments[i] == " --mangle-suffix" || arguments[i] == " --object-bits " )
67
68
{
68
69
if (i < arguments.size () - 1 )
69
70
{
Original file line number Diff line number Diff line change @@ -19,14 +19,17 @@ Author: Daniel Kroening
19
19
20
20
#include < util/unicode.h>
21
21
22
+ // clang-format off
22
23
// / parses the command line options into a cmdlinet
23
24
// / \par parameters: argument count, argument strings
24
25
// / \return none
25
26
const char *non_ms_link_options[]=
26
27
{
27
28
" --help" ,
28
- " --verbosity"
29
+ " --verbosity" ,
30
+ " --validate-goto-model"
29
31
};
32
+ // clang-format on
30
33
31
34
bool ms_link_cmdlinet::parse (const std::vector<std::string> &arguments)
32
35
{
You can’t perform that action at this time.
0 commit comments