EXPECT_EQ("line 1, col 6: expected rule name, got unknown '%'", err);
}
- {
- State state;
- ManifestParser parser(&state, NULL);
- string err;
- EXPECT_TRUE(parser.Parse("rule cc\n command = foo\n depfile = bar\n"
- "build a.o b.o: cc c.cc\n",
- &err));
- EXPECT_EQ("", err);
- }
-
{
State state;
ManifestParser parser(&state, NULL);
}
}
+TEST_F(ParserTest, MultipleOutputs)
+{
+ State state;
+ ManifestParser parser(&state, NULL);
+ string err;
+ EXPECT_TRUE(parser.Parse("rule cc\n command = foo\n depfile = bar\n"
+ "build a.o b.o: cc c.cc\n",
+ &err));
+ EXPECT_EQ("", err);
+}
+
TEST_F(ParserTest, SubNinja) {
files_["test.ninja"] =
"var = inner\n"