aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-08 11:45:08 +0000
committergingerBill <bill@gingerbill.org>2018-12-08 11:45:08 +0000
commit13f084a219320a39eaa06dc4527f720231cc9710 (patch)
tree936a3aae0eafa8c8ef8f57cf5083b1c24bb401b5 /examples
parent4205f0f0b1d0141d1853d14ff66501935a7bcc6f (diff)
Fix `foreign export` #294
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 9fc6db2a8..5f4f0dfb2 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -836,8 +836,14 @@ diverging_procedures :: proc() {
foo();
}
+foreign export {
+ bar :: proc "c" () -> i32 {
+ return 123;
+ }
+}
+
main :: proc() {
- when true {
+ when false {
general_stuff();
union_type();
parametric_polymorphism();