aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/aligned_attribute.elna
blob: 3b5a56e0be9750cf5b8c9a9d73d6fa5fa3ee787e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type
  Uneven = record
    #aligned(3) x: Word8 (* @Error Alignment must be a power of two *)
  end
  Twice = record
    #aligned(4) #aligned(8) y: Word8 (* @Error Attribute '#aligned' specified more than once *)
  end
  Unknown = record
    #packed(1) z: Word8 (* @Error Attribute '#packed' not declared *)
  end

proc takes(#aligned(8) p: Int) (* @Error Attribute '#aligned' is not supported in this position *)
begin
return

program()
begin
return 0u8

end.