mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2025-02-20 04:28:56 +00:00
19 lines
260 B
C
19 lines
260 B
C
extern void abort(void);
|
|
|
|
typedef int word __attribute__((mode(word)));
|
|
|
|
struct foo
|
|
{
|
|
word x;
|
|
word y[0];
|
|
};
|
|
|
|
int main()
|
|
{
|
|
if (sizeof(word) != sizeof(struct foo))
|
|
abort();
|
|
if (__alignof__(word) != __alignof__(struct foo))
|
|
abort();
|
|
return 0;
|
|
}
|