diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr82659-6.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr82659-6.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr82659-6.c b/gcc/testsuite/gcc.target/i386/pr82659-6.c new file mode 100644 index 00000000000..51fc1a9f5c9 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr82659-6.c @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fcf-protection -mcet" } */ +/* { dg-final { scan-assembler-times {\mendbr} 2 } } */ + +extern int x; + + __attribute__ ((visibility ("hidden"))) +void +test (int i) +{ + x = i; +} + +void +bar (int i) +{ + test (i); +} |