strub: enable conditional support
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / strub-data1.c
blob132ab63ef733a4635d9f5ce9e467e4900567206b
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
5 /* The pointed-to data enables strubbing if accessed. */
6 int __attribute__ ((__strub__)) var;
8 int f() {
9 return var;
12 /* { dg-final { scan-ipa-dump "strub_enter" "strub" } } */
13 /* { dg-final { scan-ipa-dump "strub_leave" "strub" } } */
14 /* { dg-final { scan-ipa-dump "strub_update" "strub" } } */