diff options
author | Rui Ueyama <ruiu@google.com> | 2015-02-10 18:55:39 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-02-10 18:55:39 +0000 |
commit | 375c5e2353ed5e5565dfbe43324b320e51bcac79 (patch) | |
tree | 6e5df71e2b6f5c15554c45286d282f894ff798d8 /lld/unittests | |
parent | 054c50bf4f50b5b93b1543db771715d399d97a74 (diff) | |
download | bcm5719-llvm-375c5e2353ed5e5565dfbe43324b320e51bcac79.tar.gz bcm5719-llvm-375c5e2353ed5e5565dfbe43324b320e51bcac79.zip |
GNU: Use StringRef::empty instead of a boolean flag.
This local variable name did not follow the style guide,
and it is not actually needed.
llvm-svn: 228722
Diffstat (limited to 'lld/unittests')
-rw-r--r-- | lld/unittests/DriverTests/GnuLdDriverTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/unittests/DriverTests/GnuLdDriverTest.cpp b/lld/unittests/DriverTests/GnuLdDriverTest.cpp index 5e40b4b064c..119913634f0 100644 --- a/lld/unittests/DriverTests/GnuLdDriverTest.cpp +++ b/lld/unittests/DriverTests/GnuLdDriverTest.cpp @@ -62,6 +62,11 @@ TEST_F(GnuLdParserTest, Output) { EXPECT_EQ("foo", _context->outputPath()); } +TEST_F(GnuLdParserTest, OutputDefault) { + EXPECT_TRUE(parse("ld", "abc.o", nullptr)); + EXPECT_EQ("a.out", _context->outputPath()); +} + // --noinhibit-exec TEST_F(GnuLdParserTest, NoinhibitExec) { |