mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
addressing 47 [constParameterReference],48 [constVariableReference],58
[constVariable]
This commit is contained in:
@@ -41,7 +41,7 @@ namespace ue2 {
|
||||
// Helper function: construct a graph from an expression, flags and context.
|
||||
inline
|
||||
std::unique_ptr<NGHolder> constructGraphWithCC(const std::string &expr,
|
||||
CompileContext &cc,
|
||||
const CompileContext &cc,
|
||||
unsigned flags) {
|
||||
ReportManager rm(cc.grey);
|
||||
ParsedExpression parsed(0, expr.c_str(), flags, 0);
|
||||
|
@@ -152,7 +152,7 @@ TEST(state_compress, m128_1) {
|
||||
TEST(state_compress, m128_2) {
|
||||
char buf[sizeof(m128)] = { 0 };
|
||||
|
||||
char val_raw[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
const char val_raw[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
||||
m128 val;
|
||||
memcpy(&val, val_raw, sizeof(val));
|
||||
@@ -228,7 +228,7 @@ TEST(state_compress, m256_1) {
|
||||
TEST(state_compress, m256_2) {
|
||||
char buf[sizeof(m256)] = { 0 };
|
||||
|
||||
char val_raw[32] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
const char val_raw[32] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P' };
|
||||
@@ -306,7 +306,7 @@ TEST(state_compress, m384_1) {
|
||||
TEST(state_compress, m384_2) {
|
||||
char buf[sizeof(m384)] = { 0 };
|
||||
|
||||
char val_raw[48] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
const char val_raw[48] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
||||
@@ -386,7 +386,7 @@ TEST(state_compress, m512_1) {
|
||||
TEST(state_compress, m512_2) {
|
||||
char buf[sizeof(m512)] = { 0 };
|
||||
|
||||
char val_raw[64] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
const char val_raw[64] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
||||
|
Reference in New Issue
Block a user