The C++ spec (3.6.1.3) says "The function main shall not be used within a program". This implies that it cannot recurse, so add the norecurse attribute to help the midend out a bit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/CodeGenCXX/main-norecurse.cpp | ||
---|---|---|
2 | Wow, I managed to forget in my copy-paste from another test to add "| FileCheck %s" here. I'll update this before committing. |
Missing a period at the end of the sentence.