aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/117.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/117.sh b/tests/117.sh
new file mode 100644
index 0000000..765dc58
--- /dev/null
+++ b/tests/117.sh
@@ -0,0 +1,31 @@
+cat <<'EOF' > expected
+8
+4
+4
+EOF
+
+test_diff <<'EOF'
+int printf();
+
+typedef struct {
+ int x;
+ int y;
+} S;
+
+typedef union {
+ int a;
+ char b;
+} U;
+
+typedef enum {
+ RED,
+ GREEN,
+ BLUE
+} E;
+
+int main() {
+ printf("%zu\n", sizeof(S));
+ printf("%zu\n", sizeof(U));
+ printf("%zu\n", sizeof(E));
+}
+EOF