forked from M-Labs/artiq
1
0
Fork 0

Commit missing parts of 6f5332f8.

This commit is contained in:
whitequark 2016-03-28 20:28:08 +00:00 committed by Sebastien Bourdeauducq
parent f7d4a37df9
commit 5fafcc1341
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# RUN: env ARTIQ_DUMP_LLVM=%t %python -m artiq.compiler.testbench.embedding +compile %s
# RUN: OutputCheck %s --file-to-check=%t.ll
from artiq.language.core import *
from artiq.language.types import *
# CHECK: call void @foo\(\), !dbg !\d+, !tbaa !\d+
# CHECK-L: ; Function Attrs: nounwind
# CHECK-NEXT-L: declare void @foo()
@syscall("foo", flags={"nounwind", "nowrite"})
def foo() -> TNone:
pass
@kernel
def entrypoint():
foo()