We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const volatile
1 parent fd12c40 commit 6bb2f15Copy full SHA for 6bb2f15
ctoxml/test.t/run.t
@@ -3888,3 +3888,15 @@
3888
</type>
3889
</fundec>
3890
</file>
3891
+
3892
+ $ echo 'const volatile int n;' | dune exec ctoxml
3893
+ <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
3894
+ <file>
3895
+ <var id="n" store="auto">
3896
+ <volatile>
3897
+ <const>
3898
+ <long/>
3899
+ </const>
3900
+ </volatile>
3901
+ </var>
3902
+ </file>
frontc/cparser.mly
@@ -38,7 +38,7 @@
38
| _ -> raise BadModifier in
39
let check_access typ =
40
match typ with
41
- PROTO _ | OLD_PROTO _ | CONST _ | VOLATILE _ -> false
+ PROTO _ | OLD_PROTO _ -> false
42
| _ -> true in
43
match modi with
44
BASE_SIGN _ -> (mod_root typ, sto)
0 commit comments