You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
799 B
23 lines
799 B
// Test that a slight change in the code leads to a different hash.
|
|
// RUN: %clang_cc1 -UEXTRA -triple x86_64-unknown-linux-gnu -main-file-name c-collision.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s --check-prefix=CHECK-NOEXTRA
|
|
// RUN: %clang_cc1 -DEXTRA -triple x86_64-unknown-linux-gnu -main-file-name c-collision.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s --check-prefix=CHECK-EXTRA
|
|
|
|
// CHECK-NOEXTRA: @__profd_foo = private global { {{.*}} } { i64 6699318081062747564, i64 7156072912471487002,
|
|
// CHECK-EXTRA: @__profd_foo = private global { {{.*}} } { i64 6699318081062747564, i64 -4383447408116050035,
|
|
|
|
extern int bar;
|
|
void foo() {
|
|
if (bar) {
|
|
}
|
|
if (bar) {
|
|
}
|
|
if (bar) {
|
|
if (bar) {
|
|
#ifdef EXTRA
|
|
if (bar) {
|
|
}
|
|
#endif
|
|
}
|
|
}
|
|
}
|