Commit 48fdcfd9 authored by Peter Mitsis's avatar Peter Mitsis Committed by Anas Nashif
Browse files

tests: Update iterable sections test



Updates the test_ram/test_rom structures to use a 'long' instead
of an 'int' so that the structure sizes will be 4-bytes on 32-bit
platforms and 8-bytes on 64-bit platforms.

Signed-off-by: default avatarPeter Mitsis <peter.mitsis@intel.com>
parent 0b076a93
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -8,15 +8,15 @@
#include <zephyr/sys/iterable_sections.h>

struct test_ram {
	int i;
	long i;
};

struct test_ram_named {
	int i;
	long i;
};

struct test_ram_numeric {
	int i;
	long i;
};

#define CHECK_BIT 0x80
@@ -105,15 +105,15 @@ ZTEST(iterable_sections, test_ram)
}

struct test_rom {
	int i;
	long i;
};

struct test_rom_named {
	int i;
	long i;
};

struct test_rom_numeric {
	int i;
	long i;
};

/* declare in random order to check that the linker is sorting by name */