OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [Wunused.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
/* { dg-options "-Wunused-macros -traditional-cpp" } */
5
 
6
/* Test everything related to -Wunused-macros.
7
 
8
   Source: Neil Booth, 23 Jul 2002.  */
9
 
10
#include "Wunused.h"
11
 
12
#define used1                   /* { dg-bogus "used" } */
13
#define used2                   /* { dg-bogus "used" } */
14
#define used3                   /* { dg-bogus "used" } */
15
#define used4 something         /* { dg-bogus "used" } */
16
 
17
#define unused5                 /* { dg-warning "used" } */
18
#define unused6                 /* { dg-warning "used" } */
19
#define unused7()               /* { dg-warning "used" } */
20
 
21
#if defined used1
22
#endif
23
#ifdef used2
24
#endif
25
#ifndef used3
26
#endif
27
used4
28
 
29
unused7;                        /* This does not count as a use.  */
30
 
31
#if 0
32
unused5                         /* This does not count as a use.  */
33
#endif
34
 
35
#undef unused5
36
#define unused6
37
unused6

powered by: WebSVN 2.1.0

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