1 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=0 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT0
2 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=1 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT1
3 // RUN: %clang -fprofile-generate -fprofile-function-groups=3 -fprofile-selected-function-group=2 -emit-llvm -S %s -o - | FileCheck %s --implicit-check-not="; {{.* (noprofile|skipprofile)}}" --check-prefixes=CHECK,SELECT2
7 // SELECT1: skipprofile
8 // SELECT2: skipprofile
9 // CHECK: define {{.*}} @hoo()
13 // SELECT0: skipprofile
15 // SELECT2: skipprofile
16 // CHECK: define {{.*}} @goo()
20 // SELECT0: skipprofile
21 // SELECT1: skipprofile
23 // CHECK: define {{.*}} @boo()