diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/pr38736_x.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/pr38736_x.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/pr38736_x.c b/gcc/testsuite/gcc.dg/compat/pr38736_x.c new file mode 100644 index 000000000..aeab257aa --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/pr38736_x.c @@ -0,0 +1,15 @@ +/* PR target/38736 */ +/* { dg-options "-O2" } */ + +struct alignment_test_struct +{ + char space[4] __attribute__((__aligned__)); +}; + +extern int aligned_x (void); + +int +aligned_x (void) +{ + return __alignof__(struct alignment_test_struct); +} |