aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/strub-internal-volatile.c
blob: a1436dcc0691c9f2abd3e260205731bad4f6edae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-fdump-ipa-strub" } */
/* { dg-require-effective-target strub } */

void __attribute__ ((strub("internal")))
f(volatile short s) {
}

void g(void) {
  f(0);
}

/* We make volatile parms indirect in the wrapped f.  */
/* { dg-final { scan-ipa-dump-times "volatile short" 2 "strub" } } */
/* { dg-final { scan-ipa-dump-times "volatile short int &" 1 "strub" } } */