summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings/w59.flambda.reference
blob: 33f0d7caf317322d455d10a11a87da095089adcb (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
26
27
28
29
30
31
32
33
34
File "w59.ml", line 47, characters 2-43:
47 |   Obj.set_field (Obj.repr o) 0 (Obj.repr 3);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 59 [flambda-assignment-to-non-mutable-value]: A potential assignment to a non-mutable value was detected 
in this source file.  Such assignments may generate incorrect code 
when using Flambda.

File "w59.ml", line 48, characters 2-43:
48 |   Obj.set_field (Obj.repr p) 0 (Obj.repr 3);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 59 [flambda-assignment-to-non-mutable-value]: A potential assignment to a non-mutable value was detected 
in this source file.  Such assignments may generate incorrect code 
when using Flambda.

File "w59.ml", line 49, characters 2-43:
49 |   Obj.set_field (Obj.repr q) 0 (Obj.repr 3);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 59 [flambda-assignment-to-non-mutable-value]: A potential assignment to a non-mutable value was detected 
in this source file.  Such assignments may generate incorrect code 
when using Flambda.

File "w59.ml", line 50, characters 2-43:
50 |   Obj.set_field (Obj.repr r) 0 (Obj.repr 3)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 59 [flambda-assignment-to-non-mutable-value]: A potential assignment to a non-mutable value was detected 
in this source file.  Such assignments may generate incorrect code 
when using Flambda.

File "w59.ml", line 57, characters 2-7:
57 |   set o
       ^^^^^
Warning 59 [flambda-assignment-to-non-mutable-value]: A potential assignment to a non-mutable value was detected 
in this source file.  Such assignments may generate incorrect code 
when using Flambda.