File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,25 @@ extern (C): // For easier name mangling
11
11
12
12
version (NORMAL)
13
13
{
14
- // NORMAL: sanitize_address
15
- // NORMAL: sanitize_thread
14
+ // NORMAL: ; Function Attrs:{{.*}} sanitize_address sanitize_thread
15
+ // NORMAL-NEXT: define void {{.*}}foo
16
16
void foo ()
17
17
{
18
18
}
19
19
}
20
20
else version (NOSANITIZE)
21
21
{
22
22
// NOSANITIZE-NOT: sanitize_address
23
- // NOSANITIZE: sanitize_thread
23
+ // NOSANITIZE: sanitize_thread
24
24
// NOSANITIZE-NOT: sanitize_address
25
+ // NOSANITIZE: define void {{.*}}foo_noaddress
25
26
@noSanitize(" address" )
26
27
void foo_noaddress ()
27
28
{
28
29
}
29
30
31
+ // NOSANITIZE-NOT: ; Function Attrs:{{.*}} sanitize_
32
+ // NOSANITIZE: define void {{.*}}foo_nothread_noaddress
30
33
@noSanitize(" thread" )
31
34
@noSanitize(" address" )
32
35
void foo_nothread_noaddress ()
Original file line number Diff line number Diff line change 5
5
// RUN: -fsanitize-blacklist=%S/inputs/fsanitize_blacklist_file.txt \
6
6
// RUN: -of=%t.ll %s && FileCheck %s < %t.ll
7
7
8
- // CHECK-LABEL: define {{.*}}9foofoofoo
9
- // CHECK-SAME: #[[ATTR_WITHASAN:[0-9]+]]
8
+ // CHECK: ; Function Attrs: {{.*}} sanitize_address
9
+ // CHECK-NEXT: define void {{.*}}9foofoofoo
10
10
void foofoofoo (int * i)
11
11
{
12
12
// CHECK: call {{.*}}_asan
13
13
* i = 1 ;
14
14
}
15
-
16
- // CHECK: attributes #[[ATTR_WITHASAN]] ={{.*}}sanitize_address
Original file line number Diff line number Diff line change 5
5
// RUN: -fsanitize-blacklist=%S/inputs/fsanitize_blacklist_file.txt \
6
6
// RUN: -of=%t.ll %s && FileCheck %s < %t.ll
7
7
8
- // CHECK-LABEL: define {{.*}}9foofoofoo
9
- // CHECK-SAME: #[[ATTR_NOASAN:[0-9]+]]
8
+ // CHECK-NOT: ; Function Attrs: {{.*}} sanitize_address
9
+ // CHECK: define void {{.*}}9foofoofoo
10
10
void foofoofoo (int * i)
11
11
{
12
12
* i = 1 ;
13
13
}
14
- // CHECK: attributes #[[ATTR_NOASAN]]
15
- // CHECK-NOT: sanitize_address
You can’t perform that action at this time.
0 commit comments