File: c_compilation.test

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (29 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (3)
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
29
###	SPAR <http://www.cpan.org/scripts/>
###	1	644	1329052295	1329052295	is_relevant.pl
have_cc
###	3	755	1067451873	1329052311	makepp_test_script.pl
makepp qw(--no_path_executable_dep compilation_test);
$Mpp::mod_answer = sub { $_[2] =~ s/ 0 / 1 / } if is_windows;
!system '.' . ($^O =~ /^MSWin/ ? '\\' : '/') . 'compilation_test >output';
###	9	644	1120067422	1055627995	compilation_test.c
#include <stdio.h>
#include "x.h"
#include "y.h"

int main()
{
  printf("%d %d %d %d\n", __LINE__, X, X2, Y);
  return 0;
}
###	1	644	1067451873	1055626466	x.h
#define X 1
###	1	644	1067451873	1055551960	x2.h
#define X2 2
###	2	644	1067451873	1055626463	y.h
#include "x2.h"
#define Y 3
###	D	755	1067451873	1055628127	answers
###	1	644	1067451873	1055628127	answers/n_files
2 0 0
###	1	644	1067451873	1055628033	answers/output
7 1 2 3