aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c
new file mode 100644
index 000000000..b1dece1b7
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-align-2_main.c
@@ -0,0 +1,14 @@
+/* Test compatibility of structure layout and alignment for a struct
+ containing an int and a long long, with various combinations of
+ packed and aligned attributes. The struct is from the Linux kernel. */
+
+extern void struct_align_2_x (void);
+extern void exit (int);
+int fails;
+
+int
+main ()
+{
+ struct_align_2_x ();
+ exit (0);
+}