aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-04 20:58:02 +0900
committernsfisis <nsfisis@gmail.com>2025-05-04 21:43:26 +0900
commit576b2064e05633b34de216e04b71407a5f15164b (patch)
treed67667fe75c753323b61778a0be03bbd4a4853ac /tests
parent6c12928c82d694b7b7b96a7b08d61d211f966867 (diff)
downloadP4Dcc-576b2064e05633b34de216e04b71407a5f15164b.tar.gz
P4Dcc-576b2064e05633b34de216e04b71407a5f15164b.tar.zst
P4Dcc-576b2064e05633b34de216e04b71407a5f15164b.zip
fix parse error if function returns a pointer of struct
Diffstat (limited to 'tests')
-rw-r--r--tests/034.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/034.sh b/tests/034.sh
new file mode 100644
index 0000000..12391f4
--- /dev/null
+++ b/tests/034.sh
@@ -0,0 +1,17 @@
+set -e
+
+cat <<'EOF' > expected
+EOF
+bash ../../test_diff.sh <<'EOF'
+struct S {
+ int a;
+};
+
+struct S* f();
+
+struct S* g() {}
+
+int main() {
+ return 0;
+}
+EOF