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