History

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.

Michael Matz committed 7 years ago

Commit 10510711 parent 0344c0b2 files · +3 −2Browse files

Unified · Split

2 files
  1. tests/tests2/102_alignas.c +2 −1
  2. tests/tests2/102_alignas.expect +1 −1
tests/tests2/102_alignas.c+2−1
@@ -23,6 +23,7 @@ extern int printf(const char*, ...); · 22 unmodified lines
2323 int main()
2424 {
2525 printf("%d %d %d %d\n",
26− alignof(i1), alignof(i4), alignof(i5), alignof(i8));
26+ alignof(i1) == 16, alignof(i4) == alignof(double),
27+ alignof(i5) == alignof(int) , alignof(i8) == 16);
2728 return 0;
2829 }
tests/tests2/102_alignas.expect+1−1
@@ -1 +1 @@
1−16 8 4 16
1+1 1 1 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t