aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/parser+module.test.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-15 09:27:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-15 09:27:04 +0200
commit417497632ddfa2bdc17688703c24ca3fd60af318 (patch)
tree3e498eb11abdb656494d66cb8fba54d522b4ce2a /libbuild2/cc/parser+module.test.testscript
parent96c59ff30a2dbe2cc441024c81caaf79823441ac (diff)
Improve {}-imbalance diagnostics in cc::parser and make it warning
Diffstat (limited to 'libbuild2/cc/parser+module.test.testscript')
-rw-r--r--libbuild2/cc/parser+module.test.testscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/cc/parser+module.test.testscript b/libbuild2/cc/parser+module.test.testscript
index e935180..d305125 100644
--- a/libbuild2/cc/parser+module.test.testscript
+++ b/libbuild2/cc/parser+module.test.testscript
@@ -80,7 +80,7 @@ EOO
: brace-missing
:
-$* <<EOI 2>>EOE != 0
+$* <<EOI 2>>EOE
export
{
class foo
@@ -89,12 +89,12 @@ export
module foo;
}
EOI
-<stdin>:8:1: error: {}-imbalance detected
+<stdin>:8:1: warning: missing '}'
EOE
: brace-stray
:
-$* <<EOI 2>>EOE != 0
+$* <<EOI 2>>EOE
export
{
class foo
@@ -103,7 +103,7 @@ export
}
module foo;
EOI
-<stdin>:6:1: error: {}-imbalance detected
+<stdin>:6:1: warning: extraneous '}'
EOE
: import-missing-name