<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 12, 2015 at 8:45 PM, Xinliang David Li via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@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">Author: davidxl<br>
Date: Sat Dec 12 22:45:49 2015<br>
New Revision: 255447<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=255447&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=255447&view=rev</a><br>
Log:<br>
Revert r255445: adding a new test case<br>
<br>
Removed:<br>
    cfe/trunk/test/Profile/cxx-static.cpp<br>
<br>
Removed: cfe/trunk/test/Profile/cxx-static.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/cxx-static.cpp?rev=255446&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/cxx-static.cpp?rev=255446&view=auto</a><br>
==============================================================================<br>
--- cfe/trunk/test/Profile/cxx-static.cpp (original)<br>
+++ cfe/trunk/test/Profile/cxx-static.cpp (removed)<br>
@@ -1,11 +0,0 @@<br>
-// REQUIRES: x86-registered-target<br>
-// RUN: %clang -target i386-unknown-linux -std=c++11 -o %t.o -c -no-integrated-as -fprofile-instr-generate %s<br></blockquote><div><br></div><div>What does this test case test? It looks like it goes all the way through LLVM, which we usually don't do in Clang tests (& it doesn't test any output, which is usually a sign that something's not right - if this is meant to test that we no longer crash on some input, it should probably test that we produce the correct output in that situation. Simply "not crashing" doesn't really constrain the behavior to what we want)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-<br>
-__attribute__((noinline)) static int bar() { return 1; }<br>
-<br>
-int foo(int a, int b) {<br>
-  auto Func = [](int a, int b) { return a > b; };<br>
-<br>
-  return Func(a, b) + bar();<br>
-}<br>
-<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div></div>