brintos

brintos / llvm-project-archived public Read only

0
0
Text · 794 B · 3581646 Raw
22 lines · c
1// RUN: %clang_cc1 -fprofile-instrument=llvm -disable-llvm-passes \2// RUN:   -emit-llvm -o - %s | FileCheck %s3// RUN: %clang_cc1 -fprofile-instrument=csllvm -disable-llvm-passes \4// RUN:   -emit-llvm -o - %s | FileCheck %s5// RUN: %clang_cc1 -fprofile-instrument=clang -disable-llvm-passes \6// RUN:   -emit-llvm -o - %s | FileCheck %s7// RUN: %clang_cc1 -coverage-data-file=/dev/null -disable-llvm-passes \8// RUN:   -emit-llvm -o - %s | FileCheck %s9int g(int);10 11void __attribute__((no_profile_instrument_function)) no_instr(void) {12// CHECK: define {{.*}}void @no_instr() [[ATTR:#[0-9]+]]13}14 15void instr(void) {16// CHECK: define {{.*}}void @instr() [[ATTR2:#[0-9]+]]17}18// CHECK: attributes [[ATTR]] = {{.*}} noprofile19// CHECK: attributes [[ATTR2]] = {20// CHECK-NOT: noprofile21// CHECK: }22