Hack for "true" and "false" used as enum element values
This is not a full solution by far, but should address the most common case. This also allows "cpp_enum" unit test to pass.
This commit is contained in:
parent
2a4bc0e7e5
commit
44d68197d6
3 changed files with 14 additions and 4 deletions
|
|
@ -51,7 +51,6 @@ FAILING_CPP_TESTS := \
|
|||
cpp_basic_global_var_class \
|
||||
cpp_basic_template_class \
|
||||
cpp_basic_template_function \
|
||||
cpp_enum \
|
||||
c_backend_cpp_natural_std_string \
|
||||
c_backend_cpp_exception \
|
||||
default_args \
|
||||
|
|
|
|||
|
|
@ -63,10 +63,10 @@ int main(int argc, const char *argv[]) {
|
|||
play_state t;
|
||||
|
||||
t = PLAY;
|
||||
assert(t == true);
|
||||
assert(t == 1);
|
||||
|
||||
t = STOP;
|
||||
assert(t == false);
|
||||
assert(t == 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue