repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-pr60062.c
blob
1b5b0ce8be95b058a1a505beaf1e2e681f8c4a8e
1
/*
2
pr60062.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#pragma disable_warning 85
10
#endif
11
12
#include <string.h>
13
14
/* PR target/60062 */
15
16
int
a
;
17
18
static void
19
foo
(
const char
*
p1
,
int
p2
)
20
{
21
(
void
)
p2
;
22
ASSERT
(
strcmp
(
p1
,
"hello"
) ==
0
);
23
}
24
25
static void
26
bar
(
const char
*
p1
)
27
{
28
ASSERT
(
strcmp
(
p1
,
"hello"
) ==
0
);
29
}
30
31
void
32
testTortureExecute
(
void
)
33
{
34
foo
(
"hello"
,
a
);
35
bar
(
"hello"
);
36
}