Skip to content

Commit cecc76a

Browse files
committed
[ASAN] Fix address-safety-attr test for sanitized_padded_global attribute.
Change-Id: Ieca4073bf9f4cf005b336d63eea4de23c36cfb9c
1 parent 2877356 commit cecc76a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clang/test/CodeGenObjCXX/address-safety-attr.mm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ + (int) addressSafety:(int*)a;
77

88
@implementation MyClass
99

10-
// WITHOUT: +[MyClass load]{{.*}}#0
11-
// ASAN: +[MyClass load]{{.*}}#0
10+
// WITHOUT: +[MyClass load]{{.*}}#[[ATTR0:[0-9]+]]
11+
// ASAN: +[MyClass load]{{.*}}#[[ATTR1:[0-9]+]]
1212
+(void) load { }
1313

14-
// WITHOUT: +[MyClass addressSafety:]{{.*}}#0
15-
// ASAN: +[MyClass addressSafety:]{{.*}}#0
14+
// WITHOUT: +[MyClass addressSafety:]{{.*}}#[[ATTR0]]
15+
// ASAN: +[MyClass addressSafety:]{{.*}}#[[ATTR2:[0-9]+]]
1616
+ (int) addressSafety:(int*)a { return *a; }
1717

1818
@end
1919

20-
// ASAN: attributes #0 = {{.*}}sanitize_address
21-
// WITHOUT-NOT: attributes #0 = {{.*}}sanitize_address
20+
// ASAN : attributes #[[ATTR1]] = {{.*}}sanitized_padded_global
21+
// ASAN : attributes #[[ATTR2]] = {{.*}}sanitize_address
22+
// WITHOUT-NOT: attributes #[[ATTR0]] = {{.*}}sanitize_address

0 commit comments

Comments
 (0)