Skip to content

mpl error isn't generated in compile-time #55

@Parean

Description

@Parean
# Object.mpl

Object: [{}];
#test.mpl

foo: [
  cr: {} {} {} codeRef;

  [error] !cr
  cr
];

{} {} {} [
  foo

  "Object.Object" use
] "main" exportFunction

command

mplc -o test.ll -part test.mpl
mplc -o Object.ll -part Object.mpl
clang -Wno-override-module Object.ll test.ll

output

test-cc0b0d.o : error LNK2019: unresolved external symbol lambda.7.0 referenced in function func.test.1.6.id7.foo
a.exe : fatal error LNK1120: 1 unresolved externals
clang: error: linker command failed with exit code 1120 (use -v to see invocation)

expected

test.mpl(4,4): error, [error], unknown name: error
test.mpl(4,11): [!cr], called from here
test.mpl(9,3): [foo], called from here
test.mpl(12,10): [exportFunction], called from here
test.mpl(1,1): [], called from here
clang: error: no such file or directory: 'test.ll'

Metadata

Metadata

Assignees

No one assigned

    Labels

    FNFalse negative error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions