[PATCH] [msan] lit tests

Kostya Serebryany kcc at google.com
Mon Feb 11 01:34:51 PST 2013



================
Comment at: lit_tests/heap-origin.cc:29
@@ +28,3 @@
+  // CHECK-ORIGINS: {{#0 0x.* in .*malloc}}
+  // CHECK-ORIGINS: {{#1 0x.* in main .*heap-origin.cc:21}}
+  return 0;
----------------
Add the SUMMARY line, please

================
Comment at: lit_tests/stack-origin.cc:29
@@ +28,3 @@
+  // CHECK-ORIGINS: Uninitialised value was created by an allocation of 'x' in the stack frame of function 'main'
+  return 0;
+}
----------------
ditto

================
Comment at: lit_tests/heap-origin.cc:25
@@ +24,3 @@
+  // CHECK: WARNING: Use of uninitialized value
+  // CHECK: {{#0 0x.* in main .*heap-origin.cc:22}}
+
----------------
Don't you want to use LINE instead of 22? 


http://llvm-reviews.chandlerc.com/D389



More information about the llvm-commits mailing list