diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-04 20:22:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-04 20:22:39 +0900 |
| commit | 4d9b8c3aac9c89343e9e80a0ee12c5e4b536baef (patch) | |
| tree | 6b3f629aab1fced2cc1ef49f7bbda95e43f025d8 /tests | |
| parent | 1412b319ce659ef197d2077df47a7a4c96d416fa (diff) | |
| download | P4Dcc-4d9b8c3aac9c89343e9e80a0ee12c5e4b536baef.tar.gz P4Dcc-4d9b8c3aac9c89343e9e80a0ee12c5e4b536baef.tar.zst P4Dcc-4d9b8c3aac9c89343e9e80a0ee12c5e4b536baef.zip | |
var decl with initial expr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/031.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/031.sh b/tests/031.sh new file mode 100644 index 0000000..7747f84 --- /dev/null +++ b/tests/031.sh @@ -0,0 +1,14 @@ +set -e + +cat <<'EOF' > expected +42 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + int a = 42; + printf("%d\n", a); + return 0; +} +EOF |
