repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Fix PR85203: cmse_nonsecure_caller returns wrong result
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
cmse
/
cmse-16.c
blob
3fb0380afaafa506cdb68f4d3c1dd7b535d43f26
1
/* { dg-do run } */
2
/* { dg-options "-Os -mcmse" } */
3
4
#include <arm_cmse.h>
5
6
int
7
foo
(
void
)
8
{
9
return
cmse_nonsecure_caller
();
10
}
11
12
int
13
main
(
void
)
14
{
15
/* Return success (0) if main is secure, ie if cmse_nonsecure_caller/foo
16
returns false (0). */
17
return
foo
();
18
}