Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d6470dd0
Commit
d6470dd0
authored
Apr 10, 1999
by
Zack Weinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make this test less fragile
From-SVN: r26337
parent
e9c6b69b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/testsuite/gcc.dg/990409-1.c
+4
-4
No files found.
gcc/testsuite/gcc.dg/990409-1.c
View file @
d6470dd0
/* Test that __LINE__ works when embedded in a macro. */
/* Test that __LINE__ works when embedded in a macro. */
/* { dg-do run } */
/* { dg-do run } */
#define
foo() bar(__LINE__)
#define
XLINE __LINE__
void
void
bar
(
int
x
)
bar
(
int
x
,
int
y
)
{
{
if
(
x
!=
16
)
if
(
x
!=
y
)
abort
();
abort
();
}
}
int
int
main
(
void
)
main
(
void
)
{
{
foo
();
/* This is line 16 */
bar
(
XLINE
,
__LINE__
);
return
0
;
return
0
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment