strub: enable conditional support
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / strub-indcall1.c
blob988954e7ed6bc3d0ee5e9e9509585763d5f42625
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict -fdump-ipa-strub" } */
3 /* { dg-require-effective-target strub } */
5 typedef void __attribute__ ((__strub__)) fntype ();
6 fntype (*ptr);
8 void f() {
9 ptr ();
12 /* { dg-final { scan-ipa-dump "strub_enter" "strub" } } */
13 /* { dg-final { scan-ipa-dump "(&\.strub\.watermark\.\[0-9\]\+)" "strub" } } */
14 /* { dg-final { scan-ipa-dump "strub_leave" "strub" } } */
15 /* { dg-final { scan-ipa-dump-not "strub_update" "strub" } } */