diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/compatible-enum-types.c | 7 | ||||
-rw-r--r-- | tests/compatible-enum-types.qbe | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/compatible-enum-types.c b/tests/compatible-enum-types.c index e320966..c605e90 100644 --- a/tests/compatible-enum-types.c +++ b/tests/compatible-enum-types.c @@ -1,3 +1,4 @@ -enum E {A = -1, B}; -enum E x; -int x; +enum {A = 1} x; +unsigned x; +enum {B = -1} y; +int y; diff --git a/tests/compatible-enum-types.qbe b/tests/compatible-enum-types.qbe index 7cf0e40..a9a9224 100644 --- a/tests/compatible-enum-types.qbe +++ b/tests/compatible-enum-types.qbe @@ -1 +1,2 @@ export data $x = align 4 { z 4 } +export data $y = align 4 { z 4 } |