代码搜索:paste
找到约 6,498 项符合「paste」的源代码
代码结果 6,498
www.eeworm.com/read/470720/1452326
c paste10.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-options "" } */
/* This testcase used to produce a bogus "invalid paste" warning, owing
to not clearing
www.eeworm.com/read/470720/1452343
c paste13.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* This used to be recognized as a comment when lexing after pasting
spellings. Neil Booth, 9 Oct 2002. */
#
www.eeworm.com/read/470720/1452360
c paste3.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do compile } */
#define plus +
void foo()
{
int a, b = 1;
/* The correct "a = 1 + ++b" will compile.
The incorrect "a = 1
www.eeworm.com/read/470720/1452382
c paste7.c
/* { dg-do run } */
#define D_2 1, 2
#define C_2(X, I0, I1) X##_a = I0, X##_b = I1
#define B_2(X, I) C_2(X, I)
#define A(N, X) B_##N (X, D_##N)
extern void abort(void);
extern void exit(int);
int x
www.eeworm.com/read/470720/1452391
c paste8.c
/* { dg-do preprocess } */
/* { dg-options "" } */
int foo(int, ...);
#define a(x, y...) foo(x, ##y)
a(1)
a(1, 2, 3)
#define b(x, y, z...) foo(x, ##y)
b(1, 2, 3) /* { dg-warning "valid preprocessi
www.eeworm.com/read/470720/1452408
c paste12.c
/* { dg-do preprocess } */
/* Test correct diagnostics when pasting in #include.
Source: PR preprocessor/6780. */
#define inc2(a,b)
#define INC(X) inc2(X,h)
#include INC(stdio) /* { dg-e
www.eeworm.com/read/470720/1452411
c tr-paste.c
/* Test for proper comment elimination semantics from cpplib's -traditional.
This should compile and link with compiled with `gcc -traditional-cpp'.
Test case by Jason R. Thorpe
www.eeworm.com/read/470720/1452412
c paste9.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do run } */
/* { dg-options "" } */
/* Apparently older preprocessors used to fail this test. */
#include
extern void a
www.eeworm.com/read/470720/1452466
c paste11.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* Test correct pasting of identifiers and numbers. We can paste any
number, as long as no '.', '-' or '+' app
www.eeworm.com/read/470720/1452467
c paste1.c
/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* Test operator ## semantics. */
#define bad1 ## owt /* { dg-error "cannot" "## at objlike start" } */
#define