summary refs log tree commit diff
path: root/elf/tst-tls11.c
blob: 8ceac14168bdbcc74d774958cc465fa87722f320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "tst-tls10.h"

#define CHECK(N, S)					\
  p = f##N##a ();					\
  if (p->a != S || p->b != S + 1 || p->c != S + 2)	\
    abort ()

static int
do_test (void)
{
  struct A *p;
  check1 ();
  check2 ();
  CHECK (1, 4);
  CHECK (2, 22);
  CHECK (3, 10);
  CHECK (4, 25);
  CHECK (5, 16);
  CHECK (6, 19);
  CHECK (7, 22);
  CHECK (8, 25);
  CHECK (9, 28);
  CHECK (10, 31);

  exit (0);
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"