You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/Sema/attr-malloc_span.c
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// RUN: %clang_cc1 -verify -fsyntax-only %s
2
2
// RUN: %clang_cc1 -emit-llvm -o %t %s
3
3
4
-
#include<stddef.h>
4
+
typedef__SIZE_TYPE__size_t;
5
5
6
6
typedefstruct {
7
7
void*ptr;
@@ -21,11 +21,11 @@ typedef struct {
21
21
void*ptr;
22
22
void*ptr2;
23
23
} invalid_span1;
24
-
invalid_span1returns_non_std_span1 (void) __attribute((malloc_span)); // expected-warning {{attribute only applies to return values that are span-like structures}}
24
+
invalid_span1returns_non_std_span1 (void) __attribute((malloc_span)); // expected-warning {{attribute only applies to functions that return span-like structures}}
25
25
26
26
typedefstruct {
27
27
void*ptr;
28
28
size_tn;
29
29
size_tn2;
30
30
} invalid_span2;
31
-
invalid_span2returns_non_std_span2 (void) __attribute((malloc_span)); // expected-warning {{attribute only applies to return values that are span-like structures}}
31
+
invalid_span2returns_non_std_span2 (void) __attribute((malloc_span)); // expected-warning {{attribute only applies to functions that return span-like structures}}
0 commit comments