summaryrefslogtreecommitdiff
path: root/tests/headers/extern-const-struct.h
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-10-20 07:07:25 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-10-22 09:10:47 +0200
commit870f2b86dfe389e7fa546686a2d9b8d70e52f043 (patch)
tree815aa4c8e1e891e14d883a849e699ff40fb9b125 /tests/headers/extern-const-struct.h
parentd7a74baf5c822e0312aca539c3836e5d87c6091b (diff)
codegen: Teach bindgen to respect constness of statics.
Diffstat (limited to 'tests/headers/extern-const-struct.h')
-rw-r--r--tests/headers/extern-const-struct.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/headers/extern-const-struct.h b/tests/headers/extern-const-struct.h
new file mode 100644
index 00000000..10006e82
--- /dev/null
+++ b/tests/headers/extern-const-struct.h
@@ -0,0 +1,5 @@
+struct nsFoo {
+ float details[400];
+};
+
+extern const struct nsFoo gDetails;