Fix recompilation bug with default class methods (#15970)
[ghc.git] / testsuite / tests / driver / T15970 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 clean:
6 rm -f *.o *.hi
7 rm -f A.hs C
8
9 # Changing something that a default method depends on should force
10 # recompilation of a module that instantiates the class.
11
12 T15970: clean
13 cp A1.hs A.hs
14 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -O2 C.hs
15 sleep 1
16 cp A2.hs A.hs
17 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -O2 C.hs