aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-29 02:17:00 +0900
committernsfisis <nsfisis@gmail.com>2025-08-29 02:17:00 +0900
commit8f352553faec69a6f29854898b93be47604aff28 (patch)
tree207a829278d5b9a95396d7dddc092c661e71f97a /tests
parentfc396d2b088a8b837f65b1e55a424372ade8bd37 (diff)
downloadducc-8f352553faec69a6f29854898b93be47604aff28.tar.gz
ducc-8f352553faec69a6f29854898b93be47604aff28.tar.zst
ducc-8f352553faec69a6f29854898b93be47604aff28.zip
fix: line number count
Diffstat (limited to 'tests')
-rw-r--r--tests/103.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/103.sh b/tests/103.sh
index f10d215..becfa50 100644
--- a/tests/103.sh
+++ b/tests/103.sh
@@ -13,3 +13,14 @@ test_diff <<'EOF'
#endif
int main() {}
EOF
+
+cat <<'EOF' > expected
+main.c:5: foo
+EOF
+test_compile_error <<'EOF'
+#define \
+ A \
+ B
+
+#error "foo"
+EOF