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
4db32ec6
Commit
4db32ec6
authored
Apr 08, 2000
by
Neil Booth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cpp-nullchar.c: New test.
From-SVN: r33014
parent
64aaf407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/testsuite/gcc.dg/cpp-nullchar.c
+30
-0
No files found.
gcc/testsuite/gcc.dg/cpp-nullchar.c
0 → 100644
View file @
4db32ec6
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do run } */
/* This string contains embedded nulls which should be preserved. */
static
char
x
[]
=
"A string /* { dg-warning "
null
.
*
string
" "
nulls
in
string
" { target *-*-* } 6 } */
#include <string.h>
int
main ()
{
return strlen(x) != 8;
}
/* This comment with preprocessor silently. */
/* Some random nulls among whitespace to be warned about once. */
#define N
#if 0 == '#endif
#if 0#endif
/* The null here should act as a whitespace separator. */
#define X
#if X != 1
#error /* { dg-bogus "
error
" "
Check
X
defined
OK
" } */
#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