diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/union-defs.h')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/union-defs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/union-defs.h b/gcc/testsuite/gcc.dg/compat/union-defs.h new file mode 100644 index 000000000..887cd6da8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/union-defs.h @@ -0,0 +1,15 @@ +/* Type definitions that are used by multiple tests. */ + +typedef union { char c; short s; } Ucs; +typedef union { char c; int i; } Uci; +typedef union { char c; long l; } Ucl; +typedef union { char c; long long ll; } Ucll; + +typedef union { short s; int i; } Usi; +typedef union { short s; long l; } Usl; +typedef union { short s; long long ll; } Usll; + +typedef union { int i; long l; } Uil; +typedef union { int i; long long ll; } Uill; + +typedef union { long l; long long ll; } Ulll; |