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
f979c199
Commit
f979c199
authored
Sep 04, 2002
by
Jakub Jelinek
Committed by
Jakub Jelinek
Sep 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/typeof-2.c: New test.
From-SVN: r56792
parent
23ccd1f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/ChangeLog
+2
-0
gcc/testsuite/gcc.dg/typeof-2.c
+29
-0
No files found.
gcc/testsuite/ChangeLog
View file @
f979c199
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
* g++.dg/other/cxa-atexit1.C: New test.
* g++.dg/other/cxa-atexit1.C: New test.
* gcc.dg/typeof-2.c: New test.
2002-09-03 Neil Booth <neil@daikokuya.co.uk>
2002-09-03 Neil Booth <neil@daikokuya.co.uk>
* gcc.dg/cpp/_Pragma4.c: New test.
* gcc.dg/cpp/_Pragma4.c: New test.
...
...
gcc/testsuite/gcc.dg/typeof-2.c
0 → 100644
View file @
f979c199
/* Test typeof with __asm redirection. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
extern
int
foo1
(
int
x
)
__asm
(
"baz1"
);
int
bar1
(
int
x
)
{
return
x
;
}
extern
__typeof
(
bar1
)
foo1
__attribute
((
weak
,
alias
(
"bar1"
)));
extern
int
foo2
(
int
x
)
__attribute__
((
const
));
extern
__typeof
(
foo2
)
foo2
__asm
(
"baz2"
);
int
bar2
(
int
x
)
{
return
foo2
(
x
)
+
foo2
(
x
)
+
foo2
(
x
)
+
foo2
(
x
)
+
foo2
(
x
)
+
foo2
(
x
);
}
extern
int
foo3
(
int
x
);
extern
__typeof
(
foo3
)
foo3
__asm
(
"baz3"
);
int
bar3
(
int
x
)
{
return
foo3
(
x
)
+
foo3
(
x
)
+
foo3
(
x
)
+
foo3
(
x
)
+
foo3
(
x
)
+
foo3
(
x
);
}
// { dg-final { scan-assembler-not "foo1" } }
// { dg-final { scan-assembler "baz1" } }
// { dg-final { scan-assembler-not "foo2" } }
// { dg-final { scan-assembler "baz2" } }
// { dg-final { scan-assembler-not "baz2.*baz2.*baz2.*baz2.*baz2.*baz2" } }
// { dg-final { scan-assembler-not "foo3" } }
// { dg-final { scan-assembler "baz3.*baz3.*baz3.*baz3.*baz3.*baz3" } }
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