public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43708]  New: [4.6 Regression] gcc.dg/pragma-darwin.c "set not used", not working with pragma
@ 2010-04-09 17:08 iains at gcc dot gnu dot org
  2010-04-09 18:37 ` [Bug target/43708] " jakub at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-09 17:08 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-07 17:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-09 17:08 [Bug c/43708] New: [4.6 Regression] gcc.dg/pragma-darwin.c "set not used", not working with pragma iains at gcc dot gnu dot org
2010-04-09 18:37 ` [Bug target/43708] " jakub at gcc dot gnu dot org
2010-04-09 19:24 ` iains at gcc dot gnu dot org
2010-04-11 19:31 ` rguenth at gcc dot gnu dot org
2010-04-11 19:53 ` jakub at gcc dot gnu dot org
2010-04-14 15:08 ` iains at gcc dot gnu dot org
2010-05-07 17:35 ` mrs at gcc dot gnu dot org
2010-05-07 17:35 ` mrs at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).