output space after TOK_PPNUM which followed by '+' or '-'
* correct -E output for the case ++ + ++ concatenation
do this only for expanded from macro string
and only when tcc_state->output_type == TCC_OUTPUT_PREPROCESS
This commit is contained in:
12
tests/tests2/84-hex-float.c
Normal file
12
tests/tests2/84-hex-float.c
Normal file
@ -0,0 +1,12 @@
|
||||
extern int printf(const char *format, ...);
|
||||
|
||||
#define ACPI_TYPE_INVALID 0x1E
|
||||
#define NUM_NS_TYPES ACPI_TYPE_INVALID+1
|
||||
int array[NUM_NS_TYPES];
|
||||
|
||||
#define n 0xe
|
||||
int main()
|
||||
{
|
||||
printf("n+1 = %d\n", n+1);
|
||||
// printf("n+1 = %d\n", 0xe+1);
|
||||
}
|
||||
1
tests/tests2/84-hex-float.expect
Normal file
1
tests/tests2/84-hex-float.expect
Normal file
@ -0,0 +1 @@
|
||||
n+1 = 15
|
||||
Reference in New Issue
Block a user