diff options
author | Rui Ueyama <ruiu@google.com> | 2013-08-28 20:27:41 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-08-28 20:27:41 +0000 |
commit | 9d52a94cd15c984af288bba3c2033e9739a4f4cc (patch) | |
tree | 8bfac432c8ac5158fb96811819bbf330040059d9 /lld/unittests/DriverTests/WinLinkDriverTest.cpp | |
parent | 8c8e8e237606ea06b14ea887db5a1b637741d48b (diff) | |
download | bcm5719-llvm-9d52a94cd15c984af288bba3c2033e9739a4f4cc.tar.gz bcm5719-llvm-9d52a94cd15c984af288bba3c2033e9739a4f4cc.zip |
[PECOFF] Make command line options case insensitive to match link.exe's behavior.
llvm-svn: 189505
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r-- | lld/unittests/DriverTests/WinLinkDriverTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index a70b20b1aed..74e47c1432f 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -68,6 +68,15 @@ TEST_F(WinLinkParserTest, UnixStyleOption) { EXPECT_EQ("a.obj", inputFile(0)); } +TEST_F(WinLinkParserTest, UppercaseOption) { + EXPECT_FALSE(parse("link.exe", "/SUBSYSTEM:CONSOLE", "/OUT:a.exe", "a.obj", + nullptr)); + EXPECT_EQ(llvm::COFF::IMAGE_SUBSYSTEM_WINDOWS_CUI, _context.getSubsystem()); + EXPECT_EQ("a.exe", _context.outputPath()); + EXPECT_EQ(1, inputFileCount()); + EXPECT_EQ("a.obj", inputFile(0)); +} + TEST_F(WinLinkParserTest, Mllvm) { EXPECT_FALSE(parse("link.exe", "-mllvm", "-debug", "a.obj", nullptr)); const std::vector<const char *> &options = _context.llvmOptions(); |