File: instrprof-order-file.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (17 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// UNSUPPORTED: target={{.*windows.*}}
// REQUIRES: darwin
// RUN: rm -rf %t.dir && mkdir -p %t.dir
// RUN: cd %t.dir
//
// RUN: %clang -forder-file-instrumentation -O1 -o %t.2 %S/Inputs/instrprof-order-file-2.c %S/Inputs/instrprof-order-file.c -mllvm -orderfile-write-mapping="mapping.txt"
// RUN: %run %t.2 ANY
// RUN: od -h default.profraw.order | FileCheck %s
// RUN: cat mapping.txt | FileCheck %s --check-prefix=MAPPING

// Make sure we have MD5 for main, then f, then g.
// CHECK: 0000000      d5fa    e78d    6436    db95    a18f    dd4c    4f75    cc91
// CHECK: 0000020      f5b2    47ff    6643    b671    0000    0000    0000    0000

// MAPPING: MD5 cc914f75dd4ca18f f
// MAPPING: MD5 b671664347fff5b2 g
// MAPPING: MD5 db956436e78dd5fa main