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