aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr21964-3c.c
blob: 5b750d153e44b66dd91522a7195f62f9e76b7bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

extern int foo1 (void);
extern int foo2 (void);
extern int foo3 (void);

static int my_var __attribute__((used, section("__verbose"))) = 6;

int
main ()
{
  if (foo1 () == 0
      && foo2 () == 0
      && foo3 () == 0)
    printf ("PASS\n");
  return 0;
}