OSDN Git Service

[DebugInfo][dexter] Tweak dexter test for merged values
authorOCHyams <orlando.hyams@sony.com>
Tue, 19 Jan 2021 12:31:55 +0000 (12:31 +0000)
committerOCHyams <orlando.hyams@sony.com>
Tue, 19 Jan 2021 12:45:31 +0000 (12:45 +0000)
Tweak dexter-tests/memvars/inline-escaping-function.c added in D94761
(b7e516202eb6) by adding a 'param' use after the merge point. The test XFAILS
with and without this change, but without it the test looks very similar to
memvars/unused-merged-value.c. The test now demonstrates the problem more
clearly.

debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c

index f2a22e6..16b4d1d 100644 (file)
@@ -35,7 +35,7 @@ int fun(int param) {
   if (param)
     param = inlineme(&param);
   fluff();           // DexLabel('s0')
-  return 0;
+  return param;
 }
 
 int main() {