blob: 87c44a9a29540ce10317451aa921aaec4afec5dd (
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
|
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
|