Skip to content

Commit b8029b2

Browse files
committed
test
Created using spr 1.3.4
1 parent ca42ec8 commit b8029b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/test/CodeGen/memtag-globals.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// RUN: FileCheck %s --check-prefix=IGNORELIST
99

1010
int global;
11+
int __attribute__((__section__("my_section"))) section_global;
1112
int __attribute__((no_sanitize("memtag"))) attributed_global;
1213
int __attribute__((disable_sanitizer_instrumentation)) disable_instrumentation_global;
1314
int ignorelisted_global;
@@ -22,6 +23,8 @@ void func() {
2223
// CHECK: @{{.*}}extra_global{{.*}} ={{.*}} sanitize_memtag
2324
// CHECK: @{{.*}}global{{.*}} ={{.*}} sanitize_memtag
2425

26+
// CHECK: @{{.*}}section_global{{.*}} =
27+
// CHECK-NOT: sanitize_memtag
2528
// CHECK: @{{.*}}attributed_global{{.*}} =
2629
// CHECK-NOT: sanitize_memtag
2730
// CHECK: @{{.*}}disable_instrumentation_global{{.*}} =
@@ -30,7 +33,7 @@ void func() {
3033
// CHECK-NOT: sanitize_memtag
3134

3235
// CHECK: @{{.*}}static_var{{.*}} ={{.*}} sanitize_memtag
33-
// CHECK: @{{.*}} = {{.*}} c"Hello, world!\00"{{.*}} sanitize_memtag
36+
// CHECK: @{{.*}} = {{.*}} c"Hello, world!\00"{{.*}}
3437
// CHECK: @{{.*}}external_global{{.*}} ={{.*}} sanitize_memtag
3538

3639
// IGNORELIST: @{{.*}}extra_global{{.*}} ={{.*}} sanitize_memtag

0 commit comments

Comments
 (0)