diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-06 23:44:24 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-06 23:44:24 +0000 |
| commit | 8d4eeb53f631b4e258cb2bf33f728c22586197b9 (patch) | |
| tree | fa45904a0ef7dcf040f7b89cf7c8977679089311 /llvm/unittests/Support/DwarfTest.cpp | |
| parent | 12b607ae1be5a79cbadb7d9f4db1e628c7c428f3 (diff) | |
| download | llvm-8d4eeb53f631b4e258cb2bf33f728c22586197b9.zip llvm-8d4eeb53f631b4e258cb2bf33f728c22586197b9.tar.gz llvm-8d4eeb53f631b4e258cb2bf33f728c22586197b9.tar.bz2 | |
Support: Stop stringifying DW_ATE_{lo,hi}_user
llvm-svn: 228468
Diffstat (limited to 'llvm/unittests/Support/DwarfTest.cpp')
| -rw-r--r-- | llvm/unittests/Support/DwarfTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DwarfTest.cpp b/llvm/unittests/Support/DwarfTest.cpp index 2dccfe7..b1a23b3 100644 --- a/llvm/unittests/Support/DwarfTest.cpp +++ b/llvm/unittests/Support/DwarfTest.cpp @@ -69,4 +69,14 @@ TEST(DwarfTest, getLanguage) { EXPECT_EQ(0u, getLanguage("DW_LANG_hi_user")); } +TEST(DwarfTest, AttributeEncodingStringOnInvalid) { + // This is invalid, so it shouldn't be stringified. + EXPECT_EQ(nullptr, AttributeEncodingString(0)); + + // These aren't really tags: they describe ranges within tags. They + // shouldn't be stringified either. + EXPECT_EQ(nullptr, AttributeEncodingString(DW_ATE_lo_user)); + EXPECT_EQ(nullptr, AttributeEncodingString(DW_ATE_hi_user)); +} + } // end namespace |
