Debian Codegraph @

gcc/testsuite/c-c++-common/torture/strub-indcall3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
4
5 typedef void __attribute__ ((__strub__)) fntype (int, int, ...);
6 fntype (*ptr);
7
8 void f() {
9 ptr (0, 0, 1, 1);
10 }
11
12 /* { dg-final { scan-ipa-dump "strub_enter" "strub" } } */
13 /* { dg-final { scan-ipa-dump "(0, 0, &\.strub\.watermark\.\[0-9\]\+, 1, 1)" "strub" } } */
14 /* { dg-final { scan-ipa-dump "strub_leave" "strub" } } */
15 /* { dg-final { scan-ipa-dump-not "strub_update" "strub" } } */