aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-09-14 14:14:58 +0000
committerLev Walkin <vlm@lionet.info>2004-09-14 14:14:58 +0000
commit4b90602e596d7a2036a5f92ccd2418de2ff03487 (patch)
treed8fcefcde8658162b05c91f3da21db6e09374736 /asn1c
parent6d1220a68c0f06d0da4c80db072ae6b37e56e985 (diff)
REAL/math
Diffstat (limited to 'asn1c')
-rw-r--r--asn1c/tests/check-65.c20
-rwxr-xr-xasn1c/tests/check-assembly.sh2
2 files changed, 10 insertions, 12 deletions
diff --git a/asn1c/tests/check-65.c b/asn1c/tests/check-65.c
index 65078e2b..3ada6431 100644
--- a/asn1c/tests/check-65.c
+++ b/asn1c/tests/check-65.c
@@ -16,9 +16,7 @@ uint8_t buf1[] = {
32 | ((2 << 6) + 4), /* [4], constructed */
4,
0 | ((2 << 6) + 6), /* [6], primitive */
- 2,
- 0x91,
- 0x92
+ 0
};
uint8_t buf2[] = {
@@ -32,8 +30,8 @@ uint8_t buf2[] = {
4,
0 | ((2 << 6) + 6), /* [6], primitive */
2,
- 0x91,
- 0x92,
+ 0xC0,
+ 0x00,
32 | ((2 << 6) + 2), /* [2], constructed */
6,
@@ -41,16 +39,16 @@ uint8_t buf2[] = {
4,
0 | ((2 << 6) + 6), /* [6], primitive */
2,
- 0x91,
- 0x92,
+ 0x80,
+ 0x00,
32 | ((2 << 6) + 3), /* [3], constructed */
4,
0 | ((2 << 6) + 6), /* [6], primitive */
- 2,
- 0x91,
- 0x92,
-
+ 3,
+ 0x80,
+ 0x01,
+ 0x02,
};
static void
diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh
index a0b0fdb1..b4bd1182 100755
--- a/asn1c/tests/check-assembly.sh
+++ b/asn1c/tests/check-assembly.sh
@@ -44,7 +44,7 @@ CXXFLAGS=\${COMMON_FLAGS} ${CXXFLAGS}
all: check-executable
check-executable: compiled-module *.c*
- \$(CC) \$(CFLAGS) -o check-executable *.c*
+ \$(CC) \$(CFLAGS) -o check-executable -lm *.c*
# Compile the corresponding .asn1 spec.
compiled-module: ${asn_module} ../../asn1c