File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
// Test the -profile-sample-use= flag using bogus data, to ensure it's actually
6
6
// reaching LLVM in the expected way.
7
7
8
- // RUN: %target-swift-frontend %t/program.swift -module-name test -emit-ir \
9
- // RUN: -O -profile-sample-use=%t/profile.txt -o %t/has-data.ll
8
+ // RUN: %target-swiftc_driver -v %t/program.swift -module-name test -emit-ir \
9
+ // RUN: -O -profile-sample-use=%t/profile.txt -o %t/has-data.ll \
10
+ // RUN: > %t/flags.txt
11
+
12
+ // RUN: %FileCheck %s --check-prefix CHECK-STDERR --input-file %t/flags.txt
13
+ // CHECK-STDERR: -Xllvm -sample-profile-use-profi
10
14
11
- // RUN: %FileCheck %s < %t/has-data.ll
15
+ // RUN: %FileCheck %s --input-file %t/has-data.ll
12
16
13
17
// CHECK: define{{.*}} @"$s4test8anythingyyF"() #[[ATTRID:[0-9]+]]
14
18
// CHECK: attributes #[[ATTRID]] = {{.*}} "use-sample-profile"
You can’t perform that action at this time.
0 commit comments