summaryrefslogtreecommitdiff
path: root/test-suite/output/Nametab.v
blob: 357ba982430f39bfda82b80c40b72e3947745312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Module Q.
  Module N.
    Module K.
      Definition foo := Set.
    End K.
  End N.
End Q.

(* Bad *) Locate foo.
(* Bad *) Locate K.foo.
(* Bad *) Locate N.K.foo.
(* OK  *) Locate Q.N.K.foo.
(* OK  *) Locate Top.Q.N.K.foo.

(* Bad *) Locate Module K.
(* Bad *) Locate Module N.K.
(* OK  *) Locate Module Q.N.K.
(* OK  *) Locate Module Top.Q.N.K.

(* Bad *) Locate Module N.
(* OK  *) Locate Module Q.N.
(* OK  *) Locate Module Top.Q.N.

(* OK  *) Locate Module Q.
(* OK  *) Locate Module Top.Q.


Import Q.N.


(* Bad *) Locate foo.
(* OK  *) Locate K.foo.
(* Bad *) Locate N.K.foo.
(* OK  *) Locate Q.N.K.foo.
(* OK  *) Locate Top.Q.N.K.foo.

(* OK  *) Locate Module K.
(* Bad *) Locate Module N.K.
(* OK  *) Locate Module Q.N.K.
(* OK  *) Locate Module Top.Q.N.K.

(* Bad *) Locate Module N.
(* OK  *) Locate Module Q.N.
(* OK  *) Locate Module Top.Q.N.

(* OK  *) Locate Module Q.
(* OK  *) Locate Module Top.Q.