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/] [Wunused.c] - Rev 307

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

/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.  */
 
/* { dg-do preprocess } */
/* Duplicate command line options should not warn.  */
/* { dg-options "-Wunused-macros -Dfoo -Dfoo" } */
 
/* Test everything related to -Wunused-macros.
 
   Source: Neil Booth, 23 Jul 2002.  */
 
#include "Wunused.h"
 
#define used1			/* { dg-bogus "used" } */
#define used2			/* { dg-bogus "used" } */
#define used3			/* { dg-bogus "used" } */
#define used4 used4		/* { dg-bogus "used" } */
 
#define unused5			/* { dg-warning "used" } */
#define unused6			/* { dg-warning "used" } */
#define unused7()		/* { dg-warning "used" } */
 
#if defined used1
#endif
#ifdef used2
#endif
#ifndef used3
#endif
used4
 
unused7				/* This does not count as a use.  */
 
#if 0
unused5				/* This does not count as a use.  */
#endif
#undef unused5
 
#define unused6
unused6
 

Go to most recent revision | 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.