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
bab3db73
Commit
bab3db73
authored
Oct 01, 2001
by
Neil Booth
Committed by
Neil Booth
Oct 01, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.
From-SVN: r45921
parent
383af6a2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
7 deletions
+21
-7
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/cpp/mi6.c
+13
-3
gcc/testsuite/gcc.dg/cpp/mi6a.h
+1
-1
gcc/testsuite/gcc.dg/cpp/mi6b.h
+1
-1
gcc/testsuite/gcc.dg/cpp/mi6d.h
+1
-1
gcc/testsuite/gcc.dg/cpp/mi6e.h
+1
-1
No files found.
gcc/testsuite/ChangeLog
View file @
bab3db73
2001-10-01 Neil Booth <neil@daikokuya.demon.co.uk>
* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.
2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: New test.
...
...
gcc/testsuite/gcc.dg/cpp/mi6.c
View file @
bab3db73
...
...
@@ -14,10 +14,11 @@
increment VAR, since none of the initial set should have been
flagged as optimizable. */
#define EMPTY
#define EMPTYL
#define EMPTYR
#define NOT !
#define DEFINED defined (
macro
)
#define
IND ! defined (macro
)
#define DEFINED defined (
guard
)
#define
NOT_DEFINED ! defined (guard
)
#include "mi6a.h"
#include "mi6b.h"
...
...
@@ -25,6 +26,15 @@
#include "mi6d.h"
#include "mi6e.h"
/* Define the macro guard, and redefine the macros to something that
forces compilation of the conditional blocks. */
#define guard
#define EMPTYL 1 ||
#define EMPTYR || 1
#define NOT
#define DEFINED 0
#define NOT_DEFINED 1
#define VAR five
int
...
...
gcc/testsuite/gcc.dg/cpp/mi6a.h
View file @
bab3db73
#if
IN
D
#if
NOT_DEFINE
D
#ifdef VAR
VAR
++
;
#endif
...
...
gcc/testsuite/gcc.dg/cpp/mi6b.h
View file @
bab3db73
#if NOT defined (
macro
)
#if NOT defined (
guard
)
#ifdef VAR
VAR
++
;
#endif
...
...
gcc/testsuite/gcc.dg/cpp/mi6d.h
View file @
bab3db73
#if EMPTY
!defined (macro
)
#if EMPTY
L !defined (guard
)
#ifdef VAR
VAR
++
;
#endif
...
...
gcc/testsuite/gcc.dg/cpp/mi6e.h
View file @
bab3db73
#if !defined (
macro) EMPTY
#if !defined (
guard) EMPTYR
#ifdef VAR
VAR
++
;
#endif
...
...
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