]> granicus.if.org Git - clang/commitdiff
Remove test that tests referring to the current working directory. You
authorDaniel Jasper <djasper@google.com>
Fri, 10 Jul 2015 05:57:23 +0000 (05:57 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 10 Jul 2015 05:57:23 +0000 (05:57 +0000)
cannot assume that the current working directory is writable in all test
environments. I don't know a better way to write this test of hand, lets
discuss. Possibly, a better option would be to put these together with
other test testing the driver directly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241885 91177308-0d34-0410-b5e6-96231b3b80d8

test/Profile/gcc-flag-compatibility.c

index 53a7651c14e1a27c1ab5e66d1a723a91fe573acf..f4d0ccf7d6bb83232dd4b1c15401638bf760fe4c 100644 (file)
 // PROFILE-GEN-EQ: call void @__llvm_profile_override_default_filename(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @0, i32 0, i32 0))
 // PROFILE-GEN-EQ: declare void @__llvm_profile_override_default_filename(i8*)
 
-// Check that -fprofile-use reads default.profdata
-// RUN: llvm-profdata merge %S/Inputs/gcc-flag-compatibility.proftext -o default.profdata
-// RUN: %clang %s -o - -mllvm -disable-llvm-optzns -emit-llvm -S -fprofile-use | FileCheck -check-prefix=PROFILE-USE-1 %s
-// PROFILE-USE-1: = !{!"branch_weights", i32 101, i32 2}
-
 // Check that -fprofile-use=some/path reads some/path/default.profdata
 // RUN: rm -rf %t.dir
 // RUN: mkdir -p %t.dir/some/path