diff options
author | Rui Ueyama <ruiu@google.com> | 2014-07-25 22:28:49 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-07-25 22:28:49 +0000 |
commit | 55a6e762ee7c89ae7ba952095ffa09f037e7cd97 (patch) | |
tree | c93396e2fb5fa145510f28a48ad3865aa8b0c11c /lld/unittests/DriverTests/WinLinkDriverTest.cpp | |
parent | 6eb53d6460183b51a2cde13b30031572af65d3fe (diff) | |
download | bcm5719-llvm-55a6e762ee7c89ae7ba952095ffa09f037e7cd97.tar.gz bcm5719-llvm-55a6e762ee7c89ae7ba952095ffa09f037e7cd97.zip |
[PECOFF] Add /profile command line option.
llvm-svn: 213984
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r-- | lld/unittests/DriverTests/WinLinkDriverTest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index ef36f8c86d0..c713b9c3e5d 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -652,6 +652,17 @@ TEST_F(WinLinkParserTest, OptUnknown) { } // +// Test for /PROFILE +// + +TEST_F(WinLinkParserTest, Profile) { + EXPECT_TRUE(parse("link.exe", "/profile", "a.obj", nullptr)); + EXPECT_TRUE(_context.deadStrip()); + EXPECT_FALSE(_context.getBaseRelocationEnabled()); + EXPECT_FALSE(_context.getDynamicBaseEnabled()); +} + +// // Test for command line flags that are ignored. // |