[ELF] Unit tests for -o and --noinhibit-exec.
llvm-svn: 205735
This commit is contained in:
parent
521c2278ab
commit
feab78785b
|
|
@ -40,6 +40,22 @@ TEST_F(GnuLdParserTest, Empty) {
|
||||||
EXPECT_EQ("No input files\n", errorMessage());
|
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
|
// --entry
|
||||||
|
|
||||||
TEST_F(GnuLdParserTest, Entry) {
|
TEST_F(GnuLdParserTest, Entry) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue