summaryrefslogtreecommitdiffstats
path: root/tools/gn/parser_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gn/parser_unittest.cc')
-rw-r--r--tools/gn/parser_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gn/parser_unittest.cc b/tools/gn/parser_unittest.cc
index 06464a2..7ef5ff6 100644
--- a/tools/gn/parser_unittest.cc
+++ b/tools/gn/parser_unittest.cc
@@ -475,3 +475,7 @@ TEST(Parser, LongExpression) {
TEST(Parser, HangingIf) {
DoParserErrorTest("if", 1, 1);
}
+
+TEST(Parser, NegatingList) {
+ DoParserErrorTest("executable(\"wee\") { sources =- [ \"foo.cc\" ] }", 1, 30);
+}