[llvm-bugs] [Bug 38393] New: `case` lines are not shown as covered (they are in GCC)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 31 11:43:33 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38393

            Bug ID: 38393
           Summary: `case` lines are not shown as covered (they are in
                    GCC)
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: profile
          Assignee: unassignedbugs at nondot.org
          Reporter: mcastelluccio at mozilla.com
                CC: llvm-bugs at lists.llvm.org

Examples:
        -:    1:int main(void)
        -:    2:{
        2:    3:  int i = 22;
        -:    4:
        2:    5:  switch (i) {
        -:    6:    case 7:
    #####:    7:      break;
        -:    8:
        -:    9:    case 22:
        1:   10:      i = 7;
        1:   11:      break;
        -:   12:
        -:   13:    case 42:
    #####:   14:      break;
        -:   15:  }
        -:   16:
        1:   17:  return 0;
        -:   18:}

        -:    1:int main(void)
        -:    2:{
        3:    3:  int i = 22;
        -:    4:
        3:    5:  switch (i) {
        -:    6:    case 7:
    #####:    7:      break;
        -:    8:
        -:    9:    case 22:
        1:   10:      i = 7;
        -:   11:
        -:   12:    case 42:
        1:   13:      i = 22;
        1:   14:      break;
        -:   15:  }
        -:   16:
        1:   17:  return 0;
        -:   18:}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180731/c2c9a6f5/attachment.html>


More information about the llvm-bugs mailing list