diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/builtin-types-compatible-p.c | 3 | ||||
-rw-r--r-- | test/builtin-types-compatible-p.qbe | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/builtin-types-compatible-p.c b/test/builtin-types-compatible-p.c new file mode 100644 index 0000000..23631ce --- /dev/null +++ b/test/builtin-types-compatible-p.c @@ -0,0 +1,3 @@ +int x = __builtin_types_compatible_p(unsigned, enum {A}); +int y = __builtin_types_compatible_p(const int, int); /* qualifiers are ignored */ +int z = __builtin_types_compatible_p(int *, unsigned *); diff --git a/test/builtin-types-compatible-p.qbe b/test/builtin-types-compatible-p.qbe new file mode 100644 index 0000000..cae3e60 --- /dev/null +++ b/test/builtin-types-compatible-p.qbe @@ -0,0 +1,3 @@ +export data $x = align 4 { w 1, } +export data $y = align 4 { w 1, } +export data $z = align 4 { w 0, } |