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
2b01d2d9
Commit
2b01d2d9
authored
Mar 08, 2000
by
Zack Weinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpp-mi.c: Fix switches.
cpp-redef-2.c: New. From-SVN: r32431
parent
38b24ee2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
gcc/testsuite/gcc.dg/cpp-mi.c
+2
-4
gcc/testsuite/gcc.dg/cpp-redef-2.c
+27
-0
No files found.
gcc/testsuite/gcc.dg/cpp-mi.c
View file @
2b01d2d9
...
...
@@ -6,10 +6,8 @@
/* We have to test two cases: C comments at the top and C++ comments
at the top. */
/*
{ dg-do preprocess }
{ dg-options "-Wp,-lang-c-c++-comments" }
*/
/* { dg-do preprocess }
{ dg-options "" } */
#include "cpp-mic.h"
#include "cpp-mic.h"
...
...
gcc/testsuite/gcc.dg/cpp-redef-2.c
0 → 100644
View file @
2b01d2d9
/* Test for redefining macros with significant differences. */
/* { dg-do preprocess }
{ dg-options "-pedantic -Wall" } */
#define mac(a, b) (a) + (b)
#define mac(a, b) (a) * (b)
#define mac(a, b) (a) * (x)
#define ro(x) foo x bar
#define ro(x, b) foo x bar
#define va(a...) a
#define va(...) __VA_ARGS__
/* { dg-warning "redefined" "redef mac" { target *-*-* } 7 }
{ dg-warning "redefined" "redef mac" { target *-*-* } 8 }
{ dg-warning "redefined" "redef ro" { target *-*-* } 11 }
{ dg-warning "redefined" "redef va" { target *-*-* } 14 }
{ dg-warning "previous" "prev def mac" { target *-*-* } 6 }
{ dg-warning "previous" "prev def mac" { target *-*-* } 7 }
{ dg-warning "previous" "prev def ro" { target *-*-* } 10 }
{ dg-warning "previous" "prev def va" { target *-*-* } 13 }
{ dg-warning "varargs" "named varargs" { target *-*-* } 13 }
{ dg-warning "varargs" "anon varargs" { target *-*-* } 14 } */
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