[LLVMbugs] [Bug 11760] llvm-cov crashes in llvm::GCOVFunction::read with trivial test case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 13 13:53:47 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11760

Devang Patel <dpatel at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Devang Patel <dpatel at apple.com> 2012-01-13 15:53:47 CST ---
It works for me. I have r148125. Can you try again ? 

It produces following output.


coverage.cpp
 :    #include <iostream>
 :    
 :    using namespace std;
 :    
 :    void A()
 :    {
 :        cout << "A" << endl;
 :    
 :        return;
 :    }
 :    
 :    void B()
 :    {
1:        cout << "B" << endl;
 :    
1:        return;
 :    }
 :    
 :    void C()
 :    {
 :        cout << "C" << endl;
 :    
 :        return;
 :    }
 :    
 :    
 :    
 :    int main(int argc, const char* argv[]) {
 :        cout << "argc=" << argc << endl;
 :        if (argc < 2) {
1:            A();
1:            C();
1:        } else {
 :            B();
 :        }
1:    }
 :    
 :

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list