OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste9.c] - Blame information for rev 328

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do run } */
4
/* { dg-options "" } */
5
 
6
/* Apparently older preprocessors used to fail this test.  */
7
 
8
#include <string.h>
9
 
10
extern void abort (void);
11
 
12
#define S(str, args...) "  " str "\n", ##args
13
 
14
int
15
main()
16
{
17
  const char *s = S("foo");
18
 
19
  if (strchr (s, '\n') == NULL)
20
    abort ();
21
 
22
  return 0;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.