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

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

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