Add a test case for skip with inlined functions
[deliverable/binutils-gdb.git] / ld / testsuite / ld-size / size-4a.c
CommitLineData
8fd4256d
L
1#include <stdio.h>
2
3char bar[10];
4char foo[20] = { 1 } ;
5extern int bar_size1 (void);
6extern int bar_size2 (void);
7extern int foo_size1 (void);
8extern int foo_size2 (void);
9
10int
11main ()
12{
13 int size;
14
15 size = bar_size1 ();
16 if (size == sizeof (bar) && bar_size2 () == size)
17 printf ("OK\n");
18
19 size = foo_size1 ();
20 if (size == sizeof (foo) && foo_size2 () == size)
21 printf ("OK\n");
22
23 return 0;
24}
This page took 0.347702 seconds and 4 git commands to generate.