File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -O1 -emit-llvm -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow %s -o - | FileCheck %s
2
2
// RUN: %clang_cc1 -O1 -emit-llvm -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow -mllvm -clang-remove-traps -mllvm -remove-traps-random-rate=1 %s -o - | FileCheck %s --implicit-check-not="call void @llvm.ubsantrap" --check-prefixes=REMOVE
3
3
4
- int f (int x ) {
4
+ int test (int x ) {
5
5
return x + 123 ;
6
6
}
7
7
8
- // CHECK-LABEL: define dso_local noundef i32 @f (
8
+ // CHECK-LABEL: define {{.*}} i32 @test (
9
9
// CHECK: call { i32, i1 } @llvm.sadd.with.overflow.i32(
10
10
// CHECK: trap:
11
11
// CHECK-NEXT: call void @llvm.ubsantrap(i8 0)
12
12
// CHECK-NEXT: unreachable
13
13
14
- // REMOVE-LABEL: define dso_local noundef i32 @f (
14
+ // REMOVE-LABEL: define {{.*}} i32 @test (
15
15
// REMOVE: call { i32, i1 } @llvm.sadd.with.overflow.i32(
You can’t perform that action at this time.
0 commit comments