mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 10:53:40 +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.
38 lines
655 B
Mathematica
38 lines
655 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Test parsing of invalid binary litrals.
|
|
%
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module invalid_binary_literal.
|
|
:- interface.
|
|
|
|
:- func foo1 = int.
|
|
:- func foo2 = int.
|
|
:- func foo3 = int.
|
|
:- func foo4 = int.
|
|
:- func foo5 = int.
|
|
:- func foo6 = int.
|
|
:- func foo7 = int.
|
|
:- func foo8 = int.
|
|
|
|
:- implementation.
|
|
|
|
foo1 = 0b.
|
|
|
|
foo2 = -0b.
|
|
|
|
foo3 = 0b_.
|
|
|
|
foo4 = -0b_.
|
|
|
|
foo5 = 0b11_.
|
|
|
|
foo6 = -0b11_.
|
|
|
|
foo7 = 0_b11.
|
|
|
|
foo8 = -0_b11.
|