aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/044.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/044.sh b/tests/044.sh
new file mode 100644
index 0000000..c6f0b06
--- /dev/null
+++ b/tests/044.sh
@@ -0,0 +1,22 @@
+set -e
+
+cat <<'EOF' > expected
+4
+0,1,2
+EOF
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+enum E {
+ A,
+ B,
+ C,
+};
+
+int main() {
+ enum E x = A;
+ printf("%d\n", sizeof(enum E));
+ printf("%d,%d,%d\n", A, B, C);
+ return 0;
+}
+EOF