URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
689 |
jeremybenn |
/* PR preprocessor/41445 */
|
2 |
|
|
/* Test that token after multi-line function-like macro use
|
3 |
|
|
gets correct locus even when preprocessing separately. */
|
4 |
|
|
/* { dg-do compile } */
|
5 |
|
|
/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */
|
6 |
|
|
|
7 |
|
|
#define A(x) vari x
|
8 |
|
|
#define vari(x)
|
9 |
|
|
#define B , varj
|
10 |
|
|
int A(B) ;
|
11 |
|
|
|
12 |
|
|
/* { dg-final { scan-assembler "DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"vari\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^0-9a-fA-FxX](0x)?7\[^0-9a-fA-FxX]\[^\\r\\n\]*DW_AT_decl_line" } } */
|
13 |
|
|
/* { dg-final { scan-assembler "DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"varj\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^0-9a-fA-FxX](0xa|10)\[^0-9a-fA-FxX]\[^\\r\\n\]*DW_AT_decl_line" } } */
|
14 |
|
|
/* { dg-final { cleanup-saved-temps } } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.