]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/tst-unique4.cc
iconv, localedef: avoid floating point rounding differences [BZ #24372]
[thirdparty/glibc.git] / elf / tst-unique4.cc
1 // BZ 12511
2 #include "tst-unique4.h"
3
4 #include <cstdio>
5
6 static int a[24] =
7 {
8 S<1>::i, S<2>::i, S<3>::i, S<4>::i, S<5>::i, S<6>::i, S<7>::i, S<8>::i,
9 S<9>::i, S<10>::i, S<11>::i, S<12>::i, S<13>::i, S<14>::i, S<15>::i,
10 S<16>::i, S<17>::i, S<18>::i, S<19>::i, S<20>::i, S<21>::i, S<22>::i,
11 S<23>::i, S<24>::i
12 };
13
14 int
15 main (void)
16 {
17 int result = 0;
18 for (int i = 0; i < 24; ++i)
19 {
20 printf("%d ", a[i]);
21 result |= a[i] != i + 1;
22 }
23
24 printf("\n%d\n", S<1>::j);
25 result |= S<1>::j != -1;
26
27 return result;
28 }