summaryrefslogtreecommitdiff
path: root/Tests/CustomCommand/foo.in
blob: 08c559df4dfb325922f1168f9b3d29ae41e7b2de (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
27
28
#include "doc1.h"
#include "foo.h"
#include "config.h"

#include <stdio.h>

int generated();
int wrapped();

int main ()
{
  if (generated()*wrapped()*doc() == 3*5*7)
    {
    FILE* fin = fopen(PROJECT_BINARY_DIR "/not_included.h", "r");
    if(fin)
      {
      fclose(fin);
      return 0;
      }
    else
      {
      return -2;
      }
    }
  
  return -1;
}