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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Werror-1.c] - Blame information for rev 868

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Waddress -Wattributes -Werror" } */
3
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
4
 
5
/* This is the first in a series of test cases that test the
6
   interaction between -Wfoo, -Werror, -Werror=foo, and #pragma GCC
7
   diagnostic error foo.  This one has all the bits we're testing, the
8
   others are subsets of this one.  */
9
 
10
#pragma GCC diagnostic error "-Waddress"
11
 
12
void __attribute__((dj)) bar() { }      /* { dg-warning "warning: .* attribute directive ignored" } */
13
 
14
int i;
15
 
16
void
17
foo ()
18
{
19
  if (&i)       /* { dg-error "error: .* will always evaluate as 'true'" } */
20
    grill ();
21
}

powered by: WebSVN 2.1.0

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