summaryrefslogtreecommitdiff
path: root/Tests/InterfaceLinkLibraries/bar.cpp
blob: f39bfa55e51c8be4a0cf51359bfa8ac73a620d93 (plain)
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

#ifdef FOO_LIBRARY
#error Unexpected FOO_LIBRARY
#endif

#ifdef BAR_USE_BANG
#  ifndef BANG_LIBRARY
#    error Expected BANG_LIBRARY
#  endif
#  include "bang.h"
#else
#  ifdef BANG_LIBRARY
#    error Unexpected BANG_LIBRARY
#  endif
#endif

#include "bar.h"

int bar()
{
#ifdef BAR_USE_BANG
  return bang();
#else
  return 0;
#endif
}