From a66a16e2e1d3264d87eaac66a809ec5e26849044 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sat, 18 Sep 2010 16:42:43 +0000 Subject: Added test for bugs 2242, 2337, 2339 + remove the use of name "ambiguous" in coqdep since it is now deterministic (later -R's overwriting former ones). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13432 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/misc/deps/client/bar.v | 11 +++++++++++ test-suite/misc/deps/client/foo.v | 1 + test-suite/misc/deps/deps.out | 1 + test-suite/misc/deps/lib/foo.v | 1 + 4 files changed, 14 insertions(+) create mode 100644 test-suite/misc/deps/client/bar.v create mode 100644 test-suite/misc/deps/client/foo.v create mode 100644 test-suite/misc/deps/deps.out create mode 100644 test-suite/misc/deps/lib/foo.v (limited to 'test-suite/misc') diff --git a/test-suite/misc/deps/client/bar.v b/test-suite/misc/deps/client/bar.v new file mode 100644 index 000000000..629694186 --- /dev/null +++ b/test-suite/misc/deps/client/bar.v @@ -0,0 +1,11 @@ +(* We assume the file compiled with -R ../lib lib -R . client *) +(* foo alone should refer to client.foo because -R . client comes last *) + +Require Import foo. +Goal a = 1. +reflexivity. +Qed. +Require Import lib.foo. +Goal a = 0. +reflexivity. +Qed. diff --git a/test-suite/misc/deps/client/foo.v b/test-suite/misc/deps/client/foo.v new file mode 100644 index 000000000..fc82069e5 --- /dev/null +++ b/test-suite/misc/deps/client/foo.v @@ -0,0 +1 @@ +Definition a := 1. diff --git a/test-suite/misc/deps/deps.out b/test-suite/misc/deps/deps.out new file mode 100644 index 000000000..68b48d604 --- /dev/null +++ b/test-suite/misc/deps/deps.out @@ -0,0 +1 @@ +misc/deps/client/bar.vo misc/deps/client/bar.glob: misc/deps/client/bar.v misc/deps/client/foo.vo misc/deps/lib/foo.vo diff --git a/test-suite/misc/deps/lib/foo.v b/test-suite/misc/deps/lib/foo.v new file mode 100644 index 000000000..b745fbd48 --- /dev/null +++ b/test-suite/misc/deps/lib/foo.v @@ -0,0 +1 @@ +Definition a := 0. -- cgit v1.2.3