blob: 14f28e3c276bd2163169d6d5f771170c5a313365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-fstrub=strict -fdump-ipa-strub" } */
// { dg-require-effective-target strub }
extern int __attribute__((__strub__)) initializer ();
int f() {
int x = initializer ();
return x;
}
/* { dg-final { scan-ipa-dump "strub_enter" "strub" } } */
/* { dg-final { scan-ipa-dump "strub_leave" "strub" } } */
/* { dg-final { scan-ipa-dump-not "strub_update" "strub" } } */
|