summaryrefslogtreecommitdiff
path: root/Examples/test-suite/li_constraints.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/li_constraints.i')
-rw-r--r--Examples/test-suite/li_constraints.i35
1 files changed, 35 insertions, 0 deletions
diff --git a/Examples/test-suite/li_constraints.i b/Examples/test-suite/li_constraints.i
new file mode 100644
index 0000000..1bbecf1
--- /dev/null
+++ b/Examples/test-suite/li_constraints.i
@@ -0,0 +1,35 @@
+%module li_constraints
+%include <constraints.i>
+
+%inline %{
+void test_nonnegative(double NONNEGATIVE) {
+}
+
+void test_nonpositive(double NONPOSITIVE) {
+}
+
+void test_positive(double POSITIVE) {
+}
+
+void test_negative(double POSITIVE) {
+}
+
+void test_nonzero(double NONZERO) {
+}
+
+void test_nonnull(void *NONNULL) {
+}
+
+/* These generated non-portable code and there isn't an obvious fix
+
+void test_align8(void *ALIGN8) {
+}
+
+void test_align4(void *ALIGN4) {
+}
+
+void test_align2(void *ALIGN2) {
+}
+*/
+%}
+