diff options
author | Rui Ueyama <ruiu@google.com> | 2014-04-25 03:35:13 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-04-25 03:35:13 +0000 |
commit | 409ac186bb7724c93d76db93b17ad6b1fdeea234 (patch) | |
tree | baaeffdace4201a7fb0dc457a0b7be94496c9667 /lld/unittests/DriverTests/WinLinkDriverTest.cpp | |
parent | 6a48f7d66e0c9a6bad9185ed8d391bbd728eb3f9 (diff) | |
download | bcm5719-llvm-409ac186bb7724c93d76db93b17ad6b1fdeea234.tar.gz bcm5719-llvm-409ac186bb7724c93d76db93b17ad6b1fdeea234.zip |
[PECOFF] Add /IMPLIB command line option.
This option is to override the default import file path.
llvm-svn: 207175
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r-- | lld/unittests/DriverTests/WinLinkDriverTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index 9e79a795db9..e49d122ea60 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -329,6 +329,16 @@ TEST_F(WinLinkParserTest, Merge_Circular) { "a.out", nullptr)); } +TEST_F(WinLinkParserTest, Implib) { + EXPECT_TRUE(parse("link.exe", "/implib:foo.dll.lib", "a.out", nullptr)); + EXPECT_EQ("foo.dll.lib", _context.getOutputImportLibraryPath()); +} + +TEST_F(WinLinkParserTest, ImplibDefault) { + EXPECT_TRUE(parse("link.exe", "/out:foobar.dll", "a.out", nullptr)); + EXPECT_EQ("foobar.lib", _context.getOutputImportLibraryPath()); +} + // // Tests for /section // |