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
a9c898b9
Commit
a9c898b9
authored
Feb 01, 2002
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use unused attribute for the parm
From-SVN: r49403
parent
91f5782d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/testsuite/g++.dg/ext/attrib3.C
+4
-3
No files found.
gcc/testsuite/g++.dg/ext/attrib3.C
View file @
a9c898b9
// Test that attributes work in a variety of situations.
// Test that attributes work in a variety of situations.
// { dg-options -Wunused }
// { dg-do run }
// { dg-do run }
#define attrib __attribute ((mode (QI)))
#define attrib __attribute ((mode (QI)))
#define attrib2 __attribute ((unused))
attrib
signed
int
a
;
// attributes before type are broken
attrib
signed
int
a
;
// attributes before type are broken
attrib
unsigned
int
b
;
static
attrib
unsigned
int
b
;
int
foo
(
attrib
int
o
)
// attribute arguments are broken
int
foo
(
attrib
2
int
o
)
// attribute arguments are broken
{
{
return
(
sizeof
(
a
)
!=
1
return
(
sizeof
(
a
)
!=
1
||
sizeof
(
b
)
!=
1
||
sizeof
(
b
)
!=
1
||
sizeof
(
o
)
!=
1
||
sizeof
((
attrib
signed
int
)
b
)
!=
1
);
||
sizeof
((
attrib
signed
int
)
b
)
!=
1
);
}
}
...
...
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