tmodule_name_clashes.nim 597 B

123456789101112131415161718
  1. discard """
  2. matrix: "--mm:refc"
  3. targets: "c"
  4. ccodecheck: "\\i @('atmaatsmodule_name_clashesdotnim_DatInit000')"
  5. ccodecheck: "\\i @('atmbatsmodule_name_clashesdotnim_DatInit000')"
  6. joinable: false
  7. """
  8. # Test module name clashes within same package.
  9. # This was created to test that module symbol mangling functioned correctly
  10. # for the C backend when there are one or more modules with the same name in
  11. # a package, and more than one of them require module initialization procs.
  12. # I'm not sure of the simplest method to cause the init procs to be generated.
  13. import a/module_name_clashes
  14. print A()