]> granicus.if.org Git - clang/commitdiff
[PGO] Add a test case to cover version-3 format
authorXinliang David Li <davidxl@google.com>
Fri, 11 Dec 2015 04:02:57 +0000 (04:02 +0000)
committerXinliang David Li <davidxl@google.com>
Fri, 11 Dec 2015 04:02:57 +0000 (04:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255326 91177308-0d34-0410-b5e6-96231b3b80d8

test/Profile/Inputs/c-general.profdata.v3 [new file with mode: 0644]
test/Profile/c-general.c

diff --git a/test/Profile/Inputs/c-general.profdata.v3 b/test/Profile/Inputs/c-general.profdata.v3
new file mode 100644 (file)
index 0000000..06545f9
Binary files /dev/null and b/test/Profile/Inputs/c-general.profdata.v3 differ
index 4e123ae4ef936a44f91fc8084c5548476ea745be..1829b0a7b0958c0c4b54ce732bfc9c5feb170751 100644 (file)
@@ -4,7 +4,7 @@
 
 // RUN: llvm-profdata merge %S/Inputs/c-general.proftext -o %t.profdata
 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%t.profdata | FileCheck -check-prefix=PGOUSE %s
-
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/c-general.profdata.v3 | FileCheck -check-prefix=PGOUSE %s
 // Also check compatibility with older profiles.
 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/c-general.profdata.v1 | FileCheck -check-prefix=PGOUSE %s