aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/function-align3.c
blob: adb79763d4ae440804ec4f35a995e1978ba4f18d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */
/* { dg-options "-Os -march=z13"  } */

#include <assert.h>
#include <stdint.h>

__attribute__((noinline))
void bar () {}

__attribute__((noinline))
__attribute__((optimize("O2")))
void baf () {}

int main ()
{
  bar ();
  baf ();

  void *g = &baf;

  assert ( ((uintptr_t)g % 16) == 0);
}