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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr33919.c] - Rev 689

Compare with Previous | Blame | View Log

/* PR preprocessor/pr33919 */
/* { dg-do run } */
/* { dg-options "-I . -include ${srcdir}/gcc.dg/pr33919-0.h" } */
 
#include "pr33919-1.h"
 
const char *base_file = __BASE_FILE__;
 
extern int strcmp (const char *, const char *);
extern void abort (void);
 
int
main ()
{
  if (!strcmp (pre_inc_base_file, "<command line>"))
    abort ();
  if (strcmp (pre_inc_base_file, __FILE__))
    abort ();
  if (strcmp (base_file, __FILE__))
    abort ();
  if (strcmp (inc_base_file, __FILE__))
    abort ();
  if (strcmp (nested_inc_base_file, __FILE__))
    abort ();
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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