Revision a6a52563955a5a42e1fec856d65479444ba5fbdc authored by Craig Scott on 24 March 2021, 04:43:21 UTC, committed by Craig Scott on 24 March 2021, 05:35:29 UTC
1 parent b7b0fb4
Raw File
foo.in
#include "doc1.h"
#include "foo.h"

#include <stdio.h>

int generated();
int wrapped();

#include "subdir/subdir.h"
#ifndef SUBDIR_DEF
# error SUBDIR_DEF not defined
#endif

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

  return -1;
}

back to top