summaryrefslogtreecommitdiffstats
path: root/tests/run-make/dump-mono-stats/Makefile
blob: 196f84be6ecaaec1fd24dc4323c3042bc16afe81 (plain)
1
2
3
4
5
include ../tools.mk

all:
	$(RUSTC) --crate-type lib foo.rs -Z dump-mono-stats=$(TMPDIR) -Zdump-mono-stats-format=json
	cat $(TMPDIR)/foo.mono_items.json | $(CGREP) '"name":"bar"'