Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-27 12:05:59 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-28 10:30:15 -0400
commit852c42e3407f764fd10673f9ad0520e1db3f4b92 (patch)
treeed16aa2aca4e23ef1042e6635066ca13cb86e6fd /test/symtable.xspec
parentd284d75f3960247c324b2c9916256a2474eab432 (diff)
downloadtame-852c42e3407f764fd10673f9ad0520e1db3f4b92.tar.gz
tame-852c42e3407f764fd10673f9ad0520e1db3f4b92.tar.bz2
tame-852c42e3407f764fd10673f9ad0520e1db3f4b92.zip
symtable: Detect duplicate symbols in the same package
* src/symtable.xsl (symtable:find-duplicates): Update description. Find duplicates in same package. * test/symtable.xspec: Update test case accordingly.
Diffstat (limited to 'test/symtable.xspec')
-rw-r--r--test/symtable.xspec14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/symtable.xspec b/test/symtable.xspec
index dec0726..25efa1e 100644
--- a/test/symtable.xspec
+++ b/test/symtable.xspec
@@ -74,12 +74,20 @@
symbol -->
<preproc:sym name="no-src" />
- <!-- same package, no @src -->
- <preproc:sym name="no-src-local"
+ <!-- same package, no @src, no duplicate -->
+ <preproc:sym name="no-src-local-a"
foo:uniq="a" />
- <preproc:sym name="no-src-local"
+ <preproc:sym name="no-src-local-b"
foo:uniq="b" />
+ <!-- same package, no @src, duplicate -->
+ <preproc:sym name="no-src-local"
+ foo:uniq="a"
+ foo:dup="true" />
+ <preproc:sym name="no-src-local"
+ foo:uniq="b"
+ foo:dup="true" />
+
<!-- so it should be considered in determining a duplicate -->
<preproc:sym name="no-src-dup"
foo:uniq="a"