<div dir="ltr">Hi Tom,<div><br></div><div>If you expect the AST to stay stable, you can pass the output of -ast-dump to FileCheck and use FileCheck to confirm that the cast is there.  test/SemaCXX/template-implicit-vars.cpp is an example which uses this technique.  In addition, the documentation for FileCheck is at <a href="http://llvm.org/docs/CommandGuide/FileCheck.html">http://llvm.org/docs/CommandGuide/FileCheck.html</a></div><div><br></div><div>Since LValueToRValue casts are common, it would be better to use a CHECK followed by several CHECK-NEXT's since CHECK-NEXT does not allow extra lines between the previous check line.</div><div><br></div><div>Richard</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 9:27 AM, Tom Honermann via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a fix for the following bug ready and would like to submit it for<br>
review:<br>
<br>
Bug 27981 - Missing LValueToRValue casts for use of<br>
__builtin_shufflevector in function template instantiations<br>
<a href="https://bugs.llvm.org//show_bug.cgi?id=27981" rel="noreferrer" target="_blank">https://bugs.llvm.org//show_<wbr>bug.cgi?id=27981</a><br>
<br>
I'm not sure how to write a test for this though.  The issue is a<br>
missing LValueToRValue cast.  Code gen is already tolerant of the<br>
missing cast so isn't affected by the fix.  I'm not very familiar with<br>
the infrastructure available in the Clang test suite.<br>
<br>
Tom.<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>