TESTS = \
basic-types/gassert.vala \
+ basic-types/integer-literals.vala \
basic-types/integers.vala \
basic-types/integers-boxed-cast.vala \
basic-types/escape-chars.vala \
+ basic-types/float-literals.vala \
basic-types/floats.vala \
basic-types/floats-boxed-cast.vala \
basic-types/boolean.vala \
--- /dev/null
+/* 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;
+}
+
--- /dev/null
+/* basic_types_integer_literals.c generated by valac, the Vala compiler
+ * generated from basic_types_integer_literals.vala, do not modify */
+
+#include <glib.h>
+
+static void _vala_main (void);
+
+static void
+_vala_main (void)
+{
+ {
+ guint foo = 0U;
+ guint bar = 0U;
+ foo = 23U;
+ bar = 42U;
+ }
+ {
+ gint foo = 0;
+ gint bar = 0;
+ foo = 23;
+ bar = 42;
+ }
+ {
+ gulong foo = 0UL;
+ gulong bar = 0UL;
+ foo = 23UL;
+ bar = 42UL;
+ }
+ {
+ glong foo = 0L;
+ glong bar = 0L;
+ foo = 23L;
+ bar = 42L;
+ }
+ {
+ guint64 foo = 0ULL;
+ guint64 bar = 0ULL;
+ foo = 23ULL;
+ bar = 42ULL;
+ }
+ {
+ gint64 foo = 0LL;
+ gint64 bar = 0LL;
+ foo = 23LL;
+ bar = 42LL;
+ }
+}
+
+int
+main (int argc,
+ char ** argv)
+{
+ _vala_main ();
+ return 0;
+}
+