]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-7349/Makefile
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / run-make-fulldeps / issue-7349 / Makefile
1 include ../tools.mk
2
3 # Test to make sure that inner functions within a polymorphic outer function
4 # don't get re-codegened when the outer function is monomorphized.  The test
5 # code monomorphizes the outer functions several times, but the magic constants
6 # used in the inner functions should each appear only once in the generated IR.
7
8 all:
9         $(RUSTC) foo.rs --emit=llvm-ir
10         [ "$$(grep -c 'ret i32 8675309' "$(TMPDIR)/foo.ll")" -eq "1" ]
11         [ "$$(grep -c 'ret i32 11235813' "$(TMPDIR)/foo.ll")" -eq "1" ]