File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed
Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 1+ // REQUIRES: rdar16330424
2+ // This test relies on C23 - WG14 N3037 implementation.
3+
14// RUN: %clang_cc1 -std=c23 -verify %s
25
36/* WG14 N3006: Yes
Original file line number Diff line number Diff line change 33
44#define CFI_UNCHECKED_CALLEE __attribute__((cfi_unchecked_callee))
55
6- #if __STDC_VERSION__ >= 202311L
7- // expected-no-diagnostics
8- #endif
9-
10- #if __STDC_VERSION__ < 202311L
11- // expected-note@+2 2 {{previous definition is here}}
12- #endif
6+ // expected-note@+1 2 {{previous definition is here}}
137struct field_attr_test {
148 void (CFI_UNCHECKED_CALLEE * func )(void );
159};
1610
17- #if __STDC_VERSION__ < 202311L
18- // expected-error@+2{{redefinition of 'field_attr_test'}}
19- #endif
11+ // expected-error@+1{{redefinition of 'field_attr_test'}}
2012struct field_attr_test {
2113 void (CFI_UNCHECKED_CALLEE * func )(void );
2214};
2315
2416typedef void (CFI_UNCHECKED_CALLEE func_t )(void );
2517
26- #if __STDC_VERSION__ < 202311L
27- // expected-error@+2{{redefinition of 'field_attr_test'}}
28- #endif
18+ // expected-error@+1{{redefinition of 'field_attr_test'}}
2919struct field_attr_test {
3020 func_t * func ;
3121};
You can’t perform that action at this time.
0 commit comments