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
7aab7b5a
Commit
7aab7b5a
authored
Dec 04, 2000
by
Neil Booth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/cpp/extratokens.c: Forgotten file.
From-SVN: r38014
parent
b6972575
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
gcc/testsuite/gcc.dg/cpp/extratokens.c
+38
-0
No files found.
gcc/testsuite/gcc.dg/cpp/extratokens.c
0 → 100644
View file @
7aab7b5a
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-options "-fno-show-column" } */
/* Tests all directives that do not permit excess tokens at the end of
the line. */
/* Source: Neil Booth, 4 Dec 2000. The combination of separate test
cases. */
#ifdef foo bar
/* { dg-error "extra tokens" "tokens after #ifdef" } */
#endif
#ifndef foo bar
/* { dg-error "extra tokens" "tokens after #ifndef" } */
#endif
#if 0
#if 0
#else foo /* { dg-warning "extra tokens" "tokens after #else" } */
#endif / /* { dg-warning "extra tokens" "tokens after #endif" } */
#endif
#undef foo bar
/* { dg-error "extra tokens" "tokens after #undef" } */
#assert foo(bar) bar
/* { dg-error "extra tokens" "tokens after #assert" } */
#unassert foo(bar) b
/* { dg-error "extra tokens" "tokens after #unassert" } */
#include "mi1c.h" bar
/* { dg-error "extra tokens" "tokens after #include" } */
#ident "something" bar
/* { dg-error "extra tokens" "tokens after #ident" } */
#line 36 "file.c" 3
/* ... but in a system header, it's acceptable. */
#ifdef KERNEL
#endif KERNEL
/* { dg-bogus "extra tokens" "bad warning" } */
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