aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script/parser+pre-parse.test.testscript
blob: f98512a635d3f0af9425ebe24d852b4fa2a4c85f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# file      : libbuild2/test/script/parser+pre-parse.test.testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

: attribute
:
{
  : pair
  :
  $* <<EOI 2>>EOE != 0
  x = [foo=bar]
  EOI
  testscript:1:5: error: unknown value attribute foo=bar
  EOE

  : pair-empty
  :
  $* <<EOI 2>>EOE != 0
  x = [foo=]
  EOI
  testscript:1:5: error: unknown value attribute foo
  EOE
}