brintos

brintos / llvm-project-archived public Read only

0
0
Text · 402 B · a750bef Raw
16 lines · cpp
1// RUN: rm -rf %t && split-file %s %t && cd %t2// RUN: %clangxx --coverage main.cpp -o t3// RUN: %run ./t4// RUN: llvm-cov gcov -t t-main. | FileCheck %s5 6//--- main.cpp7#include <stdio.h>8 9int main(int argc, char *argv[]) { // CHECK:      2: [[#]]:int main10  puts("");                        // CHECK-NEXT: 2: [[#]]:11#line 312  puts(""); // line 313  return 0; // line 414}15// CHECK-NOT:  {{^ +[0-9]+:}}16