URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do preprocess } */
|
/* { dg-do preprocess } */
|
|
|
/* Tests for line numbering around function-like macro calls.
|
/* Tests for line numbering around function-like macro calls.
|
Bug found by Mark Mitchell. */
|
Bug found by Mark Mitchell. */
|
|
|
#define f(x) x
|
#define f(x) x
|
#define g f
|
#define g f
|
|
|
f (3);
|
f (3);
|
#error here /* { dg-error "here" "case 0" } */
|
#error here /* { dg-error "here" "case 0" } */
|
|
|
f
|
f
|
(3);
|
(3);
|
#error here /* { dg-error "here" "case 1" } */
|
#error here /* { dg-error "here" "case 1" } */
|
|
|
(f
|
(f
|
)(3);
|
)(3);
|
#error here /* { dg-error "here" "case 2" } */
|
#error here /* { dg-error "here" "case 2" } */
|
|
|
g
|
g
|
(3);
|
(3);
|
#error here /* { dg-error "here" "case 3" } */
|
#error here /* { dg-error "here" "case 3" } */
|
|
|
(g
|
(g
|
)(3);
|
)(3);
|
#error here /* { dg-error "here" "case 4" } */
|
#error here /* { dg-error "here" "case 4" } */
|
|
|
f /* some
|
f /* some
|
text */ (3);
|
text */ (3);
|
#error here /* { dg-error "here" "case 5" } */
|
#error here /* { dg-error "here" "case 5" } */
|
|
|
(g /* some
|
(g /* some
|
text */ )(3);
|
text */ )(3);
|
#error here /* { dg-error "here" "case 6" } */
|
#error here /* { dg-error "here" "case 6" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.