diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-30 20:21:04 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-30 20:21:04 -0500 |
commit | f4018dfb9741d111a5358e918e445c5b1b10a370 (patch) | |
tree | 74425ff6d052bdeb2e604e9d2b0e769d0cb318d9 /tests/systypes | |
parent | f10e3e811dee7522e737a93a3db53a5db1cf0b32 (diff) |
Make sure that sys/types.h defines old-style C sized types
Diffstat (limited to 'tests/systypes')
-rw-r--r-- | tests/systypes/output.txt | 1 | ||||
-rw-r--r-- | tests/systypes/src.c | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/systypes/output.txt b/tests/systypes/output.txt new file mode 100644 index 00000000..2e9ba477 --- /dev/null +++ b/tests/systypes/output.txt @@ -0,0 +1 @@ +success diff --git a/tests/systypes/src.c b/tests/systypes/src.c new file mode 100644 index 00000000..a01ed578 --- /dev/null +++ b/tests/systypes/src.c @@ -0,0 +1,20 @@ +#include <sys/types.h> + +// Declare puts manually, we don't want to include any other headers here +#ifdef __cplusplus +extern "C" +#endif +int puts(const char*); + +int main() { + int8_t i8 = 0; + u_int8_t ui8 = 0; + int16_t i16 = 0; + u_int16_t ui16 = 0; + int32_t i32 = 0; + u_int32_t ui32 = 0; + int64_t i64 = 0; + u_int64_t ui64 = 0; + puts("success"); + return 0; +} |