Switching to g++ and corresponding changes according to C++ requirements.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,13 +37,15 @@ main( int __unused argc,
|
||||
parser_parse_program ();
|
||||
parser_free ();
|
||||
|
||||
if (!opcodes_equal(deserialize_bytecode (), (opcode_t[]) {
|
||||
[0] = getop_reg_var_decl (128, 129), // var tmp128 .. tmp129;
|
||||
[1] = getop_var_decl (0), // var a;
|
||||
[2] = getop_assignment (129, 1, 1), // tmp129 = 1: SMALLINT;
|
||||
[3] = getop_assignment (0, 6, 129), // a = tmp129 : TYPEOF(tmp129);
|
||||
[4] = getop_exitval (0) // exit 0;
|
||||
}, 5))
|
||||
opcode_t opcodes[] = {
|
||||
getop_reg_var_decl (128, 129), // var tmp128 .. tmp129;
|
||||
getop_var_decl (0), // var a;
|
||||
getop_assignment (129, 1, 1), // tmp129 = 1: SMALLINT;
|
||||
getop_assignment (0, 6, 129), // a = tmp129 : TYPEOF(tmp129);
|
||||
getop_exitval (0) // exit 0;
|
||||
};
|
||||
|
||||
if (!opcodes_equal((const opcode_t *) deserialize_bytecode (), opcodes, 5))
|
||||
{
|
||||
is_ok = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user