2016-01-09 07:31:57 +08:00
|
|
|
// RUN: %clang_profgen -o %t -O3 %s
|
2016-05-20 13:15:42 +08:00
|
|
|
// RUN: %run %t 1 2>&1 | FileCheck %s
|
2016-01-09 07:31:57 +08:00
|
|
|
|
|
|
|
// override the version variable with a bogus version:
|
|
|
|
unsigned long long __llvm_profile_raw_version = 10000;
|
|
|
|
int main(int argc, const char *argv[]) {
|
|
|
|
if (argc < 2)
|
|
|
|
return 1;
|
|
|
|
return 0;
|
|
|
|
}
|
2016-05-20 13:15:42 +08:00
|
|
|
// CHECK: LLVM Profile Error: Runtime and instrumentation version mismatch
|