summary refs log tree commit diff
path: root/src/test/run-make/trace-macros-flag/Makefile
blob: 3338e394e0ef9005687b3a785cb9b0c95077dfd8 (plain)
1
2
3
4
5
6
7
8
9
# This test verifies that "-Z trace-macros"  works as it should. The traditional
# "hello world" program provides a small example of this as not only println! is
# listed, but also print! (since println! expands to this)

-include ../tools.mk

all:
	$(RUSTC) -Z trace-macros hello.rs > $(TMPDIR)/hello.out
	diff -u $(TMPDIR)/hello.out hello.trace