[ELF] Unit tests for -o and --noinhibit-exec.

llvm-svn: 205735
This commit is contained in:
Rui Ueyama 2014-04-07 20:52:48 +00:00
parent 521c2278ab
commit feab78785b
1 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,22 @@ TEST_F(GnuLdParserTest, Empty) {
EXPECT_EQ("No input files\n", errorMessage());
}
// -o
TEST_F(GnuLdParserTest, Output) {
EXPECT_TRUE(parse("ld", "--start-group", "--end-group", "-o", "foo",
nullptr));
EXPECT_EQ("foo", _context->outputPath());
}
// --noinhibit-exec
TEST_F(GnuLdParserTest, NoinhibitExec) {
EXPECT_TRUE(parse("ld", "--start-group", "--end-group", "--noinhibit-exec",
nullptr));
EXPECT_TRUE(_context->allowRemainingUndefines());
}
// --entry
TEST_F(GnuLdParserTest, Entry) {