FAIL: gcc.dg/pragma-darwin.c (test for excess errors)
Excess errors:
/GCC/gcc-live-trunk/gcc/testsuite/gcc.dg/pragma-darwin.c:44:7: warning:
variable 'x' set but not used
/GCC/gcc-live-trunk/gcc/testsuite/gcc.dg/pragma-darwin.c:65:10: warning:
variable 'b' set but not used
/GCC/gcc-live-trunk/gcc/testsuite/gcc.dg/pragma-darwin.c:65:7: warning:
variable 'a' set but not used

====
int
main ()
{
  int x, z;  /* { dg-warning "unused variable 'z'" } */
  #pragma unused (x, y)

=====
#pragma unused  /* { dg-warning "missing '.' after '#pragma unused" } */
#pragma unused (a  /* { dg-warning "missing '.' after '#pragma unused" } */
#pragma unused (b) foo /* { dg-warning "junk at end of '#pragma unused'" } */


-- 
           Summary: [4.6 Regression] gcc.dg/pragma-darwin.c "set not used",
                    not working with pragma
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iains at gcc dot gnu dot org
GCC target triplet: *-apple-darwin9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43708

Reply via email to