From 20449d802568a8854ca929f05958abc4f0d482f3 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 27 Apr 2011 09:19:44 +0200 Subject: [PATCH] C++ const fix in test --- tests/run/arithmetic_analyse_types_helper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/run/arithmetic_analyse_types_helper.h b/tests/run/arithmetic_analyse_types_helper.h index 72145c95..15f9460c 100644 --- a/tests/run/arithmetic_analyse_types_helper.h +++ b/tests/run/arithmetic_analyse_types_helper.h @@ -1,26 +1,26 @@ /* A set of mutually incompatable return types. */ -struct short_return { const char *msg; }; -struct int_return { const char *msg; }; -struct longlong_return { const char *msg; }; +struct short_return { char *msg; }; +struct int_return { char *msg; }; +struct longlong_return { char *msg; }; /* A set of overloaded methods. */ short_return f(short arg) { short_return val; - val.msg = "short called"; + val.msg = (char*)"short called"; return val; } int_return f(int arg) { int_return val; - val.msg = "int called"; + val.msg = (char*)"int called"; return val; } longlong_return f(long long arg) { longlong_return val; - val.msg = "long long called"; + val.msg = (char*)"long long called"; return val; } -- 2.26.2