~mgiuca/mars/llvm-backend

« back to all changes in this revision

Viewing changes to test/cases/compiler/types.mar

  • Committer: Matt Giuca
  • Date: 2013-01-19 07:34:28 UTC
  • Revision ID: matt.giuca@gmail.com-20130119073428-grfa4jdvajwmmrod
Test case types: Added a type with constructors Int, Array, Func and Any, to test some special constructor names.
Currently, this fails, because they clash with names in the LLVM runtime.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    FJust((a, b) -> c)
26
26
    FNothing
27
27
 
 
28
# No code tests this; just the type def tests LP: #781510
 
29
type LLVMSpecialNames:
 
30
    Int
 
31
    Array
 
32
    Func
 
33
    Any
 
34
 
28
35
def lt(x :: Num, y :: Num) :: Num:
29
36
    return eq(cmp(x, y), -1)
30
37