aboutsummaryrefslogtreecommitdiffstats
path: root/tests/90-cond-int-type-OK.asn1
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-08-14 02:18:27 +0000
committerLev Walkin <vlm@lionet.info>2005-08-14 02:18:27 +0000
commit082cadcaaa610df424a1327656abb3055c9f6873 (patch)
tree7a875ab66bf5a6ceb92831e06fccd81abe3b656f /tests/90-cond-int-type-OK.asn1
parentb02a8835951516edda86f73b1bcffc4904e0f639 (diff)
PER visible constraints are used to select the native representation for INTEGER types
Diffstat (limited to 'tests/90-cond-int-type-OK.asn1')
-rw-r--r--tests/90-cond-int-type-OK.asn132
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/90-cond-int-type-OK.asn1 b/tests/90-cond-int-type-OK.asn1
new file mode 100644
index 00000000..e4745150
--- /dev/null
+++ b/tests/90-cond-int-type-OK.asn1
@@ -0,0 +1,32 @@
+
+-- OK: Everything is fine
+
+-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
+-- .spelio.software.asn1c.test (9363.1.5.1)
+-- .90
+
+ModuleConditionalIntegerType
+ { iso org(3) dod(6) internet (1) private(4) enterprise(1)
+ spelio(9363) software(1) asn1c(5) test(1) 90 }
+DEFINITIONS ::=
+BEGIN
+
+ CN-IntegerUnlimited ::= INTEGER
+ CN-IntegerMinMax ::= INTEGER (MIN..MAX)
+ CN-IntegerMinLow ::= INTEGER (MIN..1)
+ NO-IntegerMinHigh ::= INTEGER (MIN..5000000000)
+ NO-IntegerLowHigh ::= INTEGER (1..5000000000)
+ CN-IntegerLowMax ::= INTEGER (1..MAX)
+ NO-IntegerHighMax ::= INTEGER (5000000000..MAX)
+ NO-IntegerLowestMax ::= INTEGER (-5000000000..MAX)
+ NO-IntegerOutRange ::= INTEGER (5000000000..5000000001)
+ NO-IntegerOutValue ::= INTEGER (5000000000)
+ OK-IntegerInRange1 ::= INTEGER (-100..100)
+ OK-IntegerInRange2 ::= INTEGER (-100|100)
+ OK-IntegerInRange3 ::= INTEGER (-2147483648..2147483647)
+ OK-IntegerInRange4 ::= INTEGER (-2147483648|2147483647)
+ OK-IntegerInRange5 ::= INTEGER (-2147483648|2147483647,...)
+ CN-IntegerEnumerated1 ::= INTEGER { a(1), b(2) }
+ NO-IntegerEnumerated2 ::= INTEGER { a(1), b(5000000000) }
+
+END