diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-05 14:43:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-05 14:43:24 +0900 |
| commit | 1699d97db7659d471390d2e173dbca6b35747f68 (patch) | |
| tree | 11cb11bccc79f7b287b318177dfd75fb731f617d /tests | |
| parent | 171fb430a4dcd2c592d218c95b30a3ef436f865d (diff) | |
| download | P4Dcc-1699d97db7659d471390d2e173dbca6b35747f68.tar.gz P4Dcc-1699d97db7659d471390d2e173dbca6b35747f68.tar.zst P4Dcc-1699d97db7659d471390d2e173dbca6b35747f68.zip | |
support #define that replaces name with identifiers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/042.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/042.sh b/tests/042.sh new file mode 100644 index 0000000..b9f1749 --- /dev/null +++ b/tests/042.sh @@ -0,0 +1,20 @@ +set -e + +cat <<'EOF' > expected +42,123 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +#define A foo_a +#define B foo_b + +int main() { + int foo_a = 42; + int foo_b = 123; + + printf("%d,%d\n", A, B); + + return 0; +} +EOF |
