Upstream version 1.3.40
[profile/ivi/swig.git] / Examples / test-suite / integers.i
1 /* This test case is meant to be used with run tests that check that
2    -- the whole range of the integer types is supported;
3    -- errors are signalled when out-of-range values are passed.
4 */
5
6 %module integers;
7
8 %inline %{
9   signed char signed_char_identity(signed char x) { return x; }
10   unsigned char unsigned_char_identity(unsigned char x) { return x; }
11   signed short signed_short_identity(signed short x) { return x; }
12   unsigned short unsigned_short_identity(unsigned short x) { return x; }
13   signed int signed_int_identity(signed int x) { return x; }
14   unsigned int unsigned_int_identity(unsigned int x) { return x; }
15   signed long signed_long_identity(signed long x) { return x; }
16   unsigned long unsigned_long_identity(unsigned long x) { return x; }
17   signed long long signed_long_long_identity(signed long long x) { return x; }
18   unsigned long long unsigned_long_long_identity(unsigned long long x) { return x; }
19 %}
20