Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/tm/safe-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
37 (*ps)(); | 37 (*ps)(); |
38 (*pc)(); /* { dg-error "unsafe indirect function call" } */ | 38 (*pc)(); /* { dg-error "unsafe indirect function call" } */ |
39 (*pi)(); /* { dg-error "unsafe indirect function call" } */ | 39 (*pi)(); /* { dg-error "unsafe indirect function call" } */ |
40 (*pu)(); /* { dg-error "unsafe indirect function call" } */ | 40 (*pu)(); /* { dg-error "unsafe indirect function call" } */ |
41 | 41 |
42 asm(""); /* { dg-error "asm not allowed" } */ | 42 asm(""); /* { dg-error "'asm' not allowed" } */ |
43 asm("" : "=g"(i)); /* { dg-error "asm not allowed" } */ | 43 asm("" : "=g"(i)); /* { dg-error "'asm' not allowed" } */ |
44 | 44 |
45 return fc(i); | 45 return fc(i); |
46 } | 46 } |
47 | 47 |
48 int __attribute__((transaction_may_cancel_outer)) | 48 int __attribute__((transaction_may_cancel_outer)) |
60 (*pc)(); /* { dg-error "unsafe indirect function call" } */ | 60 (*pc)(); /* { dg-error "unsafe indirect function call" } */ |
61 (*pi)(); /* { dg-error "unsafe indirect function call" } */ | 61 (*pi)(); /* { dg-error "unsafe indirect function call" } */ |
62 (*pm)(); | 62 (*pm)(); |
63 (*pu)(); /* { dg-error "unsafe indirect function call" } */ | 63 (*pu)(); /* { dg-error "unsafe indirect function call" } */ |
64 | 64 |
65 asm(""); /* { dg-error "asm not allowed" } */ | 65 asm(""); /* { dg-error "'asm' not allowed" } */ |
66 asm("" : "=g"(i)); /* { dg-error "asm not allowed" } */ | 66 asm("" : "=g"(i)); /* { dg-error "'asm' not allowed" } */ |
67 | 67 |
68 return fc(i); | 68 return fc(i); |
69 } | 69 } |