xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/test/profile/instrprof-version-mismatch.c (revision ef84fd3bd8895f4e6be1e38baf19e6dc3255bc64)
1 // RUN: %clang_profgen -o %t -O3 %s
2 // RUN: LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
3 
4 // override the version variable with a bogus version:
5 unsigned long long __llvm_profile_raw_version = 10000;
main(int argc,const char * argv[])6 int main(int argc, const char *argv[]) {
7   if (argc < 2)
8     return 1;
9   return 0;
10 }
11 // CHECK: LLVM Profile: runtime and instrumentation version mismatch
12