diff options
Diffstat (limited to 'tests/run/cpp_operators_helper.h')
-rw-r--r-- | tests/run/cpp_operators_helper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run/cpp_operators_helper.h b/tests/run/cpp_operators_helper.h index ec77d7f62..6c5a545fe 100644 --- a/tests/run/cpp_operators_helper.h +++ b/tests/run/cpp_operators_helper.h @@ -84,10 +84,12 @@ NONMEMBER_BIN_OP2(COMMA) #define REF_BIN_OP(op) int& operator op (int x) { x++; return value; } class RefTestOps { - int value = 0; + int value; public: + RefTestOps() { value = 0; } + REF_UN_OP(-); REF_UN_OP(+); REF_UN_OP(*); |