| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fstrub=strict -fdump-ipa-strub" } */ |
| 3 |
/* { dg-require-effective-target strub } */ |
| 4 |
|
| 5 |
/* The pointer itself is a strub variable, that would enable internal strubbing |
| 6 |
if its value was used. Here, it's only overwritten, so no strub. */ |
| 7 |
int __attribute__ ((__strub__)) var; |
| 8 |
|
| 9 |
void f() { |
| 10 |
var = 0; |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-ipa-dump-not "strub_enter" "strub" } } */ |
| 14 |
/* { dg-final { scan-ipa-dump-not "strub_leave" "strub" } } */ |
| 15 |
/* { dg-final { scan-ipa-dump-not "strub_update" "strub" } } */ |