blob: 1d233442a242c546dfbab6f0306c6f7a695e26d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/** Tests sdcc internal macros.
*/
#include <testfwk.h>
/* test for bug #2805536: Assembly code comment cause Internal Error
https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2805536&group_id=599 */
static void
bug_2805536(void)
{
#ifndef PORT_HOST
__asm
; != <-- this should not cause a compiler internal error
__endasm;
#endif
ASSERT(1);
}
static void
test_macro(void)
{
bug_2805536();
}
|