diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-28 17:36:50 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-29 17:39:34 +0200 |
commit | 9a6dd63bbf18f50d70c1a38b2b1f887771eabf15 (patch) | |
tree | 602823aa2665381514facf3f20b9aa44fcff6a32 /tests/basic-types/float-literals.c-expected | |
parent | 40c017f95f705b6254b7c83e3adc36151a5f6fcb (diff) | |
download | vala-9a6dd63bbf18f50d70c1a38b2b1f887771eabf15.tar.gz |
tests: Add "integer/float literal" tests to increase coverage
Diffstat (limited to 'tests/basic-types/float-literals.c-expected')
-rw-r--r-- | tests/basic-types/float-literals.c-expected | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/basic-types/float-literals.c-expected b/tests/basic-types/float-literals.c-expected new file mode 100644 index 000000000..baa5423a1 --- /dev/null +++ b/tests/basic-types/float-literals.c-expected @@ -0,0 +1,40 @@ +/* basic_types_float_literals.c generated by valac, the Vala compiler + * generated from basic_types_float_literals.vala, do not modify */ + +#include <glib.h> +#include <float.h> +#include <math.h> + +static void _vala_main (void); + +static void +_vala_main (void) +{ + { + gfloat foo = 0.0F; + gfloat bar = 0.0F; + foo = 23.42F; + bar = 47.11f; + } + { + gdouble foo = 0.0; + gdouble bar = 0.0; + foo = 23.42; + bar = 47.11; + } + { + gdouble foo = 0.0; + gdouble bar = 0.0; + foo = 23.42; + bar = 47.11; + } +} + +int +main (int argc, + char ** argv) +{ + _vala_main (); + return 0; +} + |