summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/WinLinkDriverTest.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-07-25 22:28:49 +0000
committerRui Ueyama <ruiu@google.com>2014-07-25 22:28:49 +0000
commit55a6e762ee7c89ae7ba952095ffa09f037e7cd97 (patch)
treec93396e2fb5fa145510f28a48ad3865aa8b0c11c /lld/unittests/DriverTests/WinLinkDriverTest.cpp
parent6eb53d6460183b51a2cde13b30031572af65d3fe (diff)
downloadbcm5719-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.cpp11
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.
//
OpenPOWER on IntegriCloud