diff options
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. // |