test: Add a simple test to detected warnings with uint64_t, uintptr_t
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2014 10:38:39 +0000 (04:38 -0600)
committerTom Rini <trini@ti.com>
Mon, 27 Oct 2014 15:04:01 +0000 (11:04 -0400)
commitb01495e644db8315bd32b9e8d324487ef4f5b4f6
treea79534c7a2efb8529e23ac4d07a4f5c2722ac116
parent4fd074de03787ac0f6dfa61da7af230cb76714ff
test: Add a simple test to detected warnings with uint64_t, uintptr_t

These types are problematic because they are typically declared in a
non-standard way in U-Boot. For example, U-Boot uses 'long long' for
int64_t even on a 64-bit machine whereas stdint.h uses 'long'.
Similarly, U-Boot always uses 'long' for intptr_t whereas stdint.h mostly
uses 'int'.

This simple test script runs a few toolchains on a few archs to check for
warnings.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/stdint/int-types.c [new file with mode: 0644]
test/stdint/test-includes.sh [new file with mode: 0755]