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
14e2799a
Commit
14e2799a
authored
Jan 28, 2001
by
Neil Booth
Committed by
Neil Booth
Jan 28, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/cpp/avoidpaste1.c: Test case.
From-SVN: r39319
parent
26ec42ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/cpp/avoidpaste1.c
+32
-0
No files found.
gcc/testsuite/ChangeLog
View file @
14e2799a
2001-01-28 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/avoidpaste1.c: Test case.
2001-01-28 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/inline18.C: New test.
...
...
gcc/testsuite/gcc.dg/cpp/avoidpaste1.c
0 → 100644
View file @
14e2799a
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* This tests that we avoid accidental pasting only before and after
macros and arguments, and not when the tokens are already pasted
in the souce file (e.g. "::" in a C source file).
Neil Booth, 28 Jan 2001. */
#define f(x) x
#define g
/* This should preprocess as
:: : : : : :^:
: : : .. . 0
It relies on the fact that even preprocessing C we bother to separate
the colons of C++'s :: operator. If we confine this behaviour to C++
in future, this test needs to change. */
::
:
g
:
:
f
()
:
:
f
(
^
)
:
:
f
(
:
)
:
..
.
__INCLUDE_LEVEL__
/* Check builtins, too. */
/*
{ dg-final { if ![file exists avoidpaste1.i] { return } } }
{ dg-final { if { [grep avoidpaste1.i ":: : : : : :\\^:"] != "" } \{ } }
{ dg-final { if { [grep avoidpaste1.i ": : : \\\.\\\. \\\. 0"] != "" } \{ } }
{ dg-final { return \} \} } }
{ dg-final { fail "avoidpaste1.c: paste avoidance" } }
*/
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