summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-version-mismatch.c
blob: c63b299c76d730d4c4cf5736548f8a1326dbe011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_profgen -o %t -O3 %s
// RUN: %run %t 1 2>&1 | FileCheck %s

// FIXME: Weak symbols are once again a portability problem for Windows.
// XFAIL: windows

// 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;
}
// CHECK: LLVM Profile Error: Runtime and instrumentation version mismatch