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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste9.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.