summaryrefslogtreecommitdiffstats
path: root/lld/test/LinkerScript/incomplete-ternary.test
blob: fae30537d2de68c0f4b3e46a5f42389a92f01959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
  RUN: linker-script-test %s 2> %t | FileCheck %s
  RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
SECTIONS {
    . = foo ? bar;
/*
CHECK-ERR: [[@LINE-2]]:18: error: expected :
CHECK-ERR-NEXT: {{^    \. = foo \? bar;}}
CHECK-ERR-NEXT: {{^                 \^}}
*/
}

/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: identifier: .
CHECK: equal: =
CHECK: identifier: foo
CHECK: question: ?
CHECK: identifier: bar
CHECK: semicolon: ;
CHECK: r_brace: }
CHECK: eof:
*/
OpenPOWER on IntegriCloud