Make 102_alignas independend of architecture

alignment of double is of course depending on the target,
so the .expect file was arch dependend.  Fix this by simply doing
some comparison tests.
This commit is contained in:
Michael Matz 2019-04-11 00:37:07 +02:00
parent 0344c0b6a0
commit 105107124d
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ extern int printf(const char*, ...);
int main()
{
printf("%d %d %d %d\n",
alignof(i1), alignof(i4), alignof(i5), alignof(i8));
alignof(i1) == 16, alignof(i4) == alignof(double),
alignof(i5) == alignof(int) , alignof(i8) == 16);
return 0;
}

View File

@ -1 +1 @@
16 8 4 16
1 1 1 1