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

int bar = 10;

void
foo (void)
{
  if (bar == 10)
    printf ("bar is in DSO.\n");
  else if (bar == -20)
    printf ("bar is in main.\n");
  else
    printf ("FAIL\n");
}