diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-31 06:52:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | f53b6ff29c79b288792da24feb55b7ed9db2ba40 (patch) | |
| tree | a4ebc4e6ad07c79efe5bf99f8eed1b1359f54d2d /tests | |
| parent | 788cfd8bcc932e545db73da282c48a9bad8ca271 (diff) | |
| download | ducc-f53b6ff29c79b288792da24feb55b7ed9db2ba40.tar.gz ducc-f53b6ff29c79b288792da24feb55b7ed9db2ba40.tar.zst ducc-f53b6ff29c79b288792da24feb55b7ed9db2ba40.zip | |
feat: implement __LINE__ macro
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/074.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/074.sh b/tests/074.sh new file mode 100644 index 0000000..90b86c6 --- /dev/null +++ b/tests/074.sh @@ -0,0 +1,20 @@ +set -e + +cat <<'EOF' > expected +5 +EOF + +cat <<'EOF' > header.h +#define A __LINE__ +EOF + +bash ../../test_diff.sh <<'EOF' +#define B __LINE__ +#include "header.h" +int printf(); +int main() { + printf("%d\n", __LINE__); + // printf("%d\n", B); + // printf("%d\n", A); +} +EOF |
