Add discriminators for call instructions that are from the same line and same basic...
[oota-llvm.git] / unittests / Support / RegexTest.cpp
index 30ea2c5b274269d804118f54dd4feb8ed00b5964..c045c49bc3d7cde5c3ce504ae324da649d674038 100644 (file)
@@ -140,4 +140,17 @@ TEST_F(RegexTest, IsValid) {
   EXPECT_EQ("invalid character range", Error);
 }
 
+TEST_F(RegexTest, MoveConstruct) {
+  Regex r1("^[0-9]+$");
+  Regex r2(std::move(r1));
+  EXPECT_TRUE(r2.match("916"));
+}
+
+TEST_F(RegexTest, MoveAssign) {
+  Regex r1("^[0-9]+$");
+  Regex r2("abc");
+  r2 = std::move(r1);
+  EXPECT_TRUE(r2.match("916"));
+}
+
 }