diff options
Diffstat (limited to 'tests/079.sh')
| -rw-r--r-- | tests/079.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/079.sh b/tests/079.sh new file mode 100644 index 0000000..4381f45 --- /dev/null +++ b/tests/079.sh @@ -0,0 +1,27 @@ +set -e + +cat <<'EOF' > expected +42 +EOF + +cat <<'EOF' > header.h +#ifndef HEADER_H +#define HEADER_H + +int f() { return 42; } + +#endif +EOF + +bash ../../test_diff.sh <<'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 |
