summaryrefslogtreecommitdiff
path: root/Test/test0/Orderings.bpl
blob: 0d55ed276e908a77a9c33ea692a38a6f79f4aa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

type C;

const c:int extends a;
const d:int extends a complete;
const e:int extends unique a, b;
const f:int extends complete;

const a:int;
const b:int;

const g:int extends x;        // error: undeclared parent

const c0:C;
const c1:C extends c0, c0;    // error: parent mentioned twice
const c2:C extends c2;        // error: constant as its own parent

const h:int extends y;        // error: variable cannot be parent

var y:int;