https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79273

            Bug ID: 79273
           Summary: FAIL: c-c++-common/Wduplicated-branches-13.c
                    -std=gnu++98 (test for excess errors)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

spawn /test/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++
-B/test/gnu/gcc/objdir/gcc/testsuite/g++/../../
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicate
d-branches-13.c -fno-diagnostics-show-caret -fdiagnostics-color=never
-nostdinc++
-I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp
-hpux11.11 -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/includ
e/b
ackward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0
-std=gnu++98 -Wduplicated-branches -S -o Wduplicated-branches-13.s
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7:
warning: this decimal constant is unsigned only in ISO C90
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:18:7:
warning: this decimal constant is unsigned only in ISO C90
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c: In
function 'void fn1()':
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:9:3:
warning: this condition has identical branches [-Wduplicated-branches]
output is:
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7:
warning: this decimal constant is unsigned only in ISO C90
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:18:7:
warning: this decimal constant is unsigned only in ISO C90
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c: In
function 'void fn1()':
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:9:3:
warning: this condition has identical branches [-Wduplicated-branches]

PASS: c-c++-common/Wduplicated-branches-13.c  -std=gnu++98  (test for warnings,
line 9)FAIL: c-c++-common/Wduplicated-branches-13.c  -std=gnu++98 (test for
excess errors)Excess
errors:/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:11:7:
warning: this decimal constant is unsigned only in ISO
C90/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c:18:7:
warning: this decimal constant is unsigned only in ISO C90

Reply via email to