blob: fc44eef6f8fb5a7e45d56893f2756bb8efd52585 (
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__)) var;
void f() {
var = 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" } } */
|