diff options
Diffstat (limited to 'llvm/unittests/Support')
| -rw-r--r-- | llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp b/llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp index b8a42f64f89..2fd6bd8c558 100644 --- a/llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp +++ b/llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp @@ -233,6 +233,23 @@ static std::vector<Testcase> getTestcases() { }, {} }, + + // Check that ctor and dtor variants are considered distinct. + { + {}, + {{"_ZN1XC1Ev"}, {"_ZN1XC2Ev"}, {"_ZN1XD1Ev"}, {"_ZN1XD2Ev"}} + }, + + // Ensure array types with and without bounds are handled properly. + { + { + {FragmentKind::Type, "A_i", "A1_f"}, + }, + { + {"_Z1fRA_i", "_Z1fRA_i", "_Z1fRA1_f"}, + {"_Z1fRA1_i"}, {"_Z1fRA_f"}, + } + }, }; } |

