@@ -10,20 +10,20 @@ struct astruct { char member; };
10
10
11
11
ptrdiff_t p0 ; // c99-error{{unknown type name 'ptrdiff_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
12
12
c99-modules-error{{unknown type}} c11-modules-error{{unknown type}} c23-modules-error{{unknown type}} \
13
- c99-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}} \
14
- c11-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}} \
15
- c23-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}} \
16
- c99-modules-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}} \
17
- c11-modules-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}} \
18
- c23-modules-note {{maybe try to include <stddef.h>; 'ptrdiff_t' is defined in <stddef.h>}}
13
+ c99-note {{'ptrdiff_t' is defined in <stddef.h>}} \
14
+ c11-note {{'ptrdiff_t' is defined in <stddef.h>}} \
15
+ c23-note {{'ptrdiff_t' is defined in <stddef.h>}} \
16
+ c99-modules-note {{'ptrdiff_t' is defined in <stddef.h>}} \
17
+ c11-modules-note {{'ptrdiff_t' is defined in <stddef.h>}} \
18
+ c23-modules-note {{'ptrdiff_t' is defined in <stddef.h>}}
19
19
size_t s0 ; // c99-error{{unknown type name 'size_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
20
20
c99-modules-error{{unknown type}} c11-modules-error{{unknown type}} c23-modules-error{{unknown type}} \
21
- c99-note {{maybe try }} \
22
- c11-note {{maybe try }} \
23
- c23-note {{maybe try }} \
24
- c99-modules-note {{maybe try to include <stddef.h>; 'size_t' is defined in <stddef.h>}} \
25
- c11-modules-note {{maybe try to include <stddef.h>; 'size_t' is defined in <stddef.h>}} \
26
- c23-modules-note {{maybe try to include <stddef.h>; 'size_t' is defined in <stddef.h>}}
21
+ c99-note {{'size_t' is defined in }} \
22
+ c11-note {{'size_t' is defined in }} \
23
+ c23-note {{'size_t' is defined in }} \
24
+ c99-modules-note {{'size_t' is defined in <stddef.h>}} \
25
+ c11-modules-note {{'size_t' is defined in <stddef.h>}} \
26
+ c23-modules-note {{'size_t' is defined in <stddef.h>}}
27
27
rsize_t r0 ; // c99-error{{unknown type name 'rsize_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
28
28
c99-modules-error{{unknown type}} c11-modules-error{{unknown type}} c23-modules-error{{unknown type}}
29
29
wchar_t wc0 ; // c99-error{{unknown type name 'wchar_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
@@ -36,30 +36,30 @@ static void f0(void) { unreachable(); } // c99-error{{call to undeclared functio
36
36
c99-modules-error{{undeclared function}} c11-modules-error{{undeclared function}} c23-modules-error{{undeclared identifier}}
37
37
max_align_t m0 ; // c99-error{{unknown type name 'max_align_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
38
38
c99-modules-error{{unknown type}} c11-modules-error{{unknown type}} c23-modules-error{{unknown type}} \
39
- c99-note {{maybe try }} \
39
+ c99-note {{'max_align_t' is defined in }} \
40
40
c99-note {{'max_align_t' is a c11 feature}} \
41
- c11-note {{maybe try }} \
41
+ c11-note {{'max_align_t' is defined in }} \
42
42
c11-note {{'max_align_t' is a c11 feature}} \
43
- c23-note {{maybe try }} \
43
+ c23-note {{'max_align_t' is defined in }} \
44
44
c23-note {{'max_align_t' is a c11 feature}} \
45
- c99-modules-note {{maybe try to include <stddef.h>; 'max_align_t' is defined in <stddef.h>}} \
45
+ c99-modules-note {{'max_align_t' is defined in <stddef.h>}} \
46
46
c99-modules-note {{'max_align_t' is a c11 feature}} \
47
- c11-modules-note {{maybe try to include <stddef.h>; 'max_align_t' is defined in <stddef.h>}} \
47
+ c11-modules-note {{'max_align_t' is defined in <stddef.h>}} \
48
48
c11-modules-note {{'max_align_t' is a c11 feature}} \
49
- c23-modules-note {{maybe try to include <stddef.h>; 'max_align_t' is defined in <stddef.h>}} \
49
+ c23-modules-note {{'max_align_t' is defined in <stddef.h>}} \
50
50
c23-modules-note {{'max_align_t' is a c11 feature}}
51
51
size_t o0 = offsetof(struct astruct , member ); // c99-error{{unknown type name 'size_t'}} c99-error{{call to undeclared function 'offsetof'}} c99-error{{expected expression}} c99-error{{use of undeclared identifier 'member'}} \
52
52
c11-error{{unknown type}} c11-error{{undeclared function}} c11-error{{expected expression}} c11-error{{undeclared identifier}} \
53
53
c23-error{{unknown type}} c23-error{{undeclared identifier}} c23-error{{expected expression}} c23-error{{undeclared identifier}} \
54
54
c99-modules-error{{unknown type}} c99-modules-error{{undeclared function}} c99-modules-error{{expected expression}} c99-modules-error{{undeclared identifier}} \
55
55
c11-modules-error{{unknown type}} c11-modules-error{{undeclared function}} c11-modules-error{{expected expression}} c11-modules-error{{undeclared identifier}} \
56
56
c23-modules-error{{unknown type}} c23-modules-error{{undeclared identifier}} c23-modules-error{{expected expression}} c23-modules-error{{undeclared identifier}} \
57
- c99-note {{maybe try }} \
58
- c11-note {{maybe try }} \
59
- c23-note {{maybe try }} \
60
- c99-modules-note {{maybe try }} \
61
- c11-modules-note {{maybe try }} \
62
- c23-modules-note {{maybe try }}
57
+ c99-note {{'size_t' is defined in }} \
58
+ c11-note {{'size_t' is defined in }} \
59
+ c23-note {{'size_t' is defined in }} \
60
+ c99-modules-note {{'size_t' is defined in }} \
61
+ c11-modules-note {{'size_t' is defined in }} \
62
+ c23-modules-note {{'size_t' is defined in }}
63
63
wint_t wi0 ; // c99-error{{unknown type name 'wint_t'}} c11-error{{unknown type}} c23-error{{unknown type}} \
64
64
c99-modules-error{{unknown type name 'wint_t'}} c11-modules-error{{unknown type}} c23-modules-error{{unknown type}}
65
65
@@ -79,7 +79,7 @@ static void f1(void) { unreachable(); } // c99-error{{undeclared function}} c11-
79
79
c99-modules-error{{undeclared function}} c11-modules-error{{undeclared function}}
80
80
max_align_t m1 ; // c99-error{{unknown type}} c99-modules-error{{'max_align_t' must be declared before it is used}} \
81
81
c99-modules-note@__stddef_max_align_t.h:*{{declaration here is not visible}} \
82
- c99-note {{maybe try }} \
82
+ c99-note {{'max_align_t' is defined in }} \
83
83
c99-note {{'max_align_t' is a c11 feature}}
84
84
size_t o1 = offsetof(struct astruct , member );
85
85
wint_t wi1 ; // c99-error{{unknown type}} c11-error{{unknown type}} c23-error{{unknown type}} \
@@ -98,7 +98,7 @@ nullptr_t n2; // c99-error{{unknown type}} c11-error{{unknown type}} \
98
98
static void f2 (void ) { unreachable (); } // c99-error{{undeclared function}} c11-error{{undeclared function}} \
99
99
c99-modules-error{{undeclared function}} c11-modules-error{{undeclared function}}
100
100
max_align_t m2 ; // c99-error{{unknown type}} \
101
- c99-note {{maybe try }} \
101
+ c99-note {{'max_align_t' is defined in }} \
102
102
c99-note {{'max_align_t' is a c11 feature}}
103
103
size_t o2 = offsetof(struct astruct , member );
104
104
wint_t wi2 ; // c99-error{{unknown type}} c11-error{{unknown type}} c23-error{{unknown type}} \
0 commit comments