blob: f8f0462fb21a5f28727a7f9a819b3a0596b3eee0 (
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
|
cat <<'EOF' > expected
42
EOF
cat <<'EOF' > header.h
#ifndef HEADER_H
#define HEADER_H
int f() { return 42; }
#endif
EOF
test_diff <<'EOF'
#include "header.h"
#include "header.h"
#include "header.h"
int printf();
int main() {
printf("%d\n", HEADER_H HEADER_H HEADER_H f() HEADER_H HEADER_H HEADER_H);
return 0;
}
EOF
|