aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-15 12:35:47 +0900
committernsfisis <nsfisis@gmail.com>2025-09-15 13:00:31 +0900
commitc12aa625ce7fed32f1416b9c711ea9d6e960e002 (patch)
treeedcd116017cb84fa07189e8c650c34206cb275a4 /tests
parent93c25fde8b26da97a7984c48cbc9f0f7f6037483 (diff)
downloadducc-c12aa625ce7fed32f1416b9c711ea9d6e960e002.tar.gz
ducc-c12aa625ce7fed32f1416b9c711ea9d6e960e002.tar.zst
ducc-c12aa625ce7fed32f1416b9c711ea9d6e960e002.zip
fix: issue where enumeration cannot be referenced until enum definition completes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_enums.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_enums.sh b/tests/test_enums.sh
index 228786a..3fc15a0 100644
--- a/tests/test_enums.sh
+++ b/tests/test_enums.sh
@@ -21,7 +21,7 @@ EOF
cat <<'EOF' > expected
10,11,20,21
-0,5,6
+0,5,6,6
EOF
test_diff <<'EOF'
@@ -37,12 +37,12 @@ enum E1 {
enum E2 {
E,
F = 5,
- G
+ G,
+ H = G,
};
int main() {
printf("%d,%d,%d,%d\n", A, B, C, D);
- printf("%d,%d,%d\n", E, F, G);
+ printf("%d,%d,%d,%d\n", E, F, G, H);
}
EOF
-