URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [pr12625-1.c] - Rev 12
Compare with Previous | Blame | View Log
/* Warning for assignment used as truth-value should apply for bit-fields. */ /* Origin: bug 12625 from nomura at netapp.com */ /* { dg-do compile } */ /* { dg-options "-Wparentheses" } */ static struct { int i:8; } s; void foo () { if (s.i = 0) ; /* { dg-warning "parentheses" "warning for bit-field" } */ }