diff options
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r-- | lld/unittests/DriverTests/WinLinkDriverTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index 011ca414ff8..2568da8e819 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -183,6 +183,11 @@ TEST_F(WinLinkParserTest, ExportWithOptions) { EXPECT_TRUE(exports[1].isData); } +TEST_F(WinLinkParserTest, ExportDuplicates) { + EXPECT_FALSE( + parse("link.exe", "/export:foo,@1", "/export:bar,@1", "a.out", nullptr)); +} + TEST_F(WinLinkParserTest, ExportInvalid1) { EXPECT_FALSE(parse("link.exe", "/export:foo,@0", "a.out", nullptr)); } |