~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to compiler-rt/lib/asan/lit_tests/wait.cc

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
 
37
37
#include <assert.h>
 
38
#include <sys/wait.h>
38
39
#include <unistd.h>
39
 
#include <wait.h>
40
40
 
41
41
int main(int argc, char **argv) {
42
42
  pid_t pid = fork();
67
67
    // CHECK: stack-buffer-overflow
68
68
    // CHECK: {{WRITE of size .* at 0x.* thread T0}}
69
69
    // CHECK: {{in .*wait}}
70
 
    // CHECK: {{in main .*wait.cc:}}
 
70
    // CHECK: {{in _?main .*wait.cc:}}
71
71
    // CHECK: is located in stack of thread T0 at offset
72
 
    // CHECK: in main
 
72
    // CHECK: {{in _?main}}
73
73
    return res != -1;
74
74
  }
75
75
  // child