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
blob1b5b0ce8be95b058a1a505beaf1e2e681f8c4a8e
1 /*
2 pr60062.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 #include <string.h>
14 /* PR target/60062 */
16 int a;
18 static void
19 foo (const char *p1, int p2)
21 (void)p2;
22 ASSERT (strcmp (p1, "hello") == 0);
25 static void
26 bar (const char *p1)
28 ASSERT (strcmp (p1, "hello") == 0);
31 void
32 testTortureExecute (void)
34 foo ("hello", a);
35 bar ("hello");