gcc/testsuite/gcc.dg/strub-internal-volatile.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fdump-ipa-strub" } */ |
| 3 | /* { dg-require-effective-target strub } */ |
| 4 | |
| 5 | void __attribute__ ((strub("internal"))) |
| 6 | f(volatile short s) { |
| 7 | } |
| 8 | |
| 9 | void g(void) { |
| 10 | f(0); |
| 11 | } |
| 12 | |
| 13 | /* We make volatile parms indirect in the wrapped f. */ |
| 14 | /* { dg-final { scan-ipa-dump-times "volatile short" 2 "strub" } } */ |
| 15 | /* { dg-final { scan-ipa-dump-times "volatile short int &" 1 "strub" } } */ |