mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
tests/invalid/bug10.{m,err_exp}:
tests/invalid/bug115.{m,err_exp}:
tests/invalid/bug117.{m,err_exp}:
tests/invalid/bug191.{m,err_exp}:
tests/invalid/bug436.{m,err_exp}:
tests/invalid/invalid_binary_literal.{m,err_exp}:
tests/invalid/invalid_decimal_literal.{m,err_exp}:
tests/invalid/invalid_float_literal.{m,err_exp}:
tests/invalid/invalid_hex_literal.{m,err_exp}:
tests/invalid/invalid_octal_literal.{m,err_exp}:
tests/invalid/invalid_pragma.{m,err_exp}:
tests/invalid/require_tailrec_invalid.{m,err_exp}:
tests/invalid/type_lhs_var.{m,err_exp}:
tests/invalid/typeclass_no_param.{m,err_exp}:
tests/invalid/unrecognized_pragma.{m,err_exp}:
Put vim modelines into these .m files, and improve their
programming style.
Update the .err_exp files for the changed line numbers.
50 lines
884 B
Mathematica
50 lines
884 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Test parsing of invalid float literals.
|
|
%
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module invalid_float_literal.
|
|
:- interface.
|
|
|
|
:- func foo1 = float.
|
|
:- func foo2 = float.
|
|
:- func foo3 = float.
|
|
:- func foo4 = float.
|
|
:- func foo5 = float.
|
|
:- func foo6 = float.
|
|
:- func foo7 = float.
|
|
:- func foo8 = float.
|
|
:- func foo9 = float.
|
|
:- func foo10 = float.
|
|
:- func foo11 = float.
|
|
:- func foo12 = float.
|
|
|
|
:- implementation.
|
|
|
|
foo1 = 1_2_3.1_2_3_.
|
|
|
|
foo2 = 1_2_3e1_2_3_.
|
|
|
|
foo3 = 123_e12.
|
|
|
|
foo4 = 123e_12.
|
|
|
|
foo5 = 123_._123.
|
|
|
|
foo6 = 123._123.
|
|
|
|
foo7 = 123_.123.
|
|
|
|
foo8 = 123.12e_-12.
|
|
|
|
foo9 = 123.12e_+12.
|
|
|
|
foo10 = 123_e12.
|
|
|
|
foo11 = 123.12e-_12.
|
|
|
|
foo12 = 123.12e+_12.
|