[fir][NFC] Add two negative tests for needExternalNameMangling
authorValentin Clement <clementval@gmail.com>
Tue, 12 Oct 2021 07:24:58 +0000 (09:24 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 12 Oct 2021 07:25:23 +0000 (09:25 +0200)
commit5371968e4817cc0deda82aa462820b678ff5b05a
tree2c600423e7ff1c3a65829fad985f581e3fcf9dd3
parent0608bbd4e8d5227ee73470840ae8988f01b4604d
[fir][NFC] Add two negative tests for needExternalNameMangling

Add two test for needExternalNameMangling.
- One varibale in a function
- One namelist in a module

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D111544
flang/unittests/Optimizer/InternalNamesTest.cpp