brintos

brintos / llvm-project-archived public Read only

0
0
Text · 800 B · f35ba1b Raw
23 lines · c
1// Test that a slight change in the code leads to a different hash.2// 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-NOEXTRA3// 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-EXTRA4 5// CHECK-NOEXTRA: @__profd_foo = private global { {{.*}} } { i64 6699318081062747564, i64 238543884830405146,6// CHECK-EXTRA:   @__profd_foo = private global { {{.*}} } { i64 6699318081062747564, i64 228238610311337869,7 8extern int bar;9void foo(void) {10  if (bar) {11  }12  if (bar) {13  }14  if (bar) {15    if (bar) {16#ifdef EXTRA17      if (bar) {18      }19#endif20    }21  }22}23