Changeset 0497b6ba
- Timestamp:
- Dec 15, 2024, 10:14:13 PM (2 days ago)
- Branches:
- master
- Children:
- d344a63, f9a0dd0
- Parents:
- a16f2b6
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/attr-priority.txt
ra16f2b6 r0497b6ba 1 attr-priority.cfa:7:1 warning: invalid attribute: constructor priorities from 101 to 200 are reserved for the implementation 2 attr-priority.cfa:12:1 warning: invalid attribute: destructor priorities from 101 to 200 are reserved for the implementation 1 attr-priority.cfa:7:1 warning: invalid attribute: constructor priorities from 101 to 200 are reserved for the implementation. 2 attr-priority.cfa:12:1 warning: invalid attribute: destructor priorities from 101 to 200 are reserved for the implementation. 3 3 attr-priority.cfa:8:1 error: Invalid application of existing declaration(s) in expression Applying untyped: 4 4 Name: malloc -
tests/.expect/attributes.x64.txt
ra16f2b6 r0497b6ba 1337 1337 return _X4_retS3Vad_1; 1338 1338 } 1339 __attribute__ (( noreturn )) void _X4fredFv___1(void){ 1340 __attribute__ ((unused)) signed int _X1ii_2; 1341 switch ( 3 ) { 1342 case 2: 1343 { 1344 { 1345 ((void)4); 1346 } 1347 1348 } 1349 case 1: 1350 { 1351 { 1352 ((void)3); 1353 } 1354 1355 } 1356 } 1357 1358 } 1359 __attribute__ ((noreturn)) void _X4maryFv___1(void){ 1360 struct __attribute__ ((aligned(64))) S { 1361 signed int _X1ii_2; 1362 }; 1363 inline void _X12_constructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){ 1364 { 1365 ((void)((*_X4_dstS1S_2)._X1ii_2) /* ?{} */); 1366 } 1367 1368 } 1369 inline void _X12_constructorFv_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){ 1370 { 1371 ((void)((*_X4_dstS1S_2)._X1ii_2=_X4_srcS1S_2._X1ii_2) /* ?{} */); 1372 } 1373 1374 } 1375 inline void _X11_destructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){ 1376 { 1377 ((void)((*_X4_dstS1S_2)._X1ii_2) /* ^?{} */); 1378 } 1379 1380 } 1381 inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){ 1382 __attribute__ ((unused)) struct S _X4_retS1S_2; 1383 { 1384 ((void)((*_X4_dstS1S_2)._X1ii_2=_X4_srcS1S_2._X1ii_2)); 1385 } 1386 1387 { 1388 ((void)_X12_constructorFv_S1SS1S_autogen___2((&_X4_retS1S_2), (*_X4_dstS1S_2))); 1389 } 1390 1391 return _X4_retS1S_2; 1392 } 1393 inline void _X12_constructorFv_S1Si_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ii_2){ 1394 { 1395 ((void)((*_X4_dstS1S_2)._X1ii_2=_X1ii_2) /* ?{} */); 1396 } 1397 1398 } 1399 __attribute__ ((unused)) signed int _X1ii_2; 1400 switch ( 3 ) { 1401 case 2: 1402 { 1403 { 1404 ((void)4); 1405 } 1406 1407 } 1408 case 1: 1409 { 1410 { 1411 ((void)3); 1412 } 1413 1414 } 1415 } 1416 1417 } -
tests/attributes.cfa
ra16f2b6 r0497b6ba 10 10 // Created On : Mon Feb 6 16:07:02 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 23 20:33:07 202313 // Update Count : 3912 // Last Modified On : Sun Dec 15 17:45:39 2024 13 // Update Count : 49 14 14 // 15 15 … … 162 162 }; 163 163 164 [[ noreturn ]] void fred() { 165 int [[unused]] i; 166 switch ( 3 ) { 167 case 2: 168 4; 169 // __attribute__(( fallthrough )) 170 // [[fallthrough]] 171 case 1: 172 3; 173 } 174 } 175 176 @[ noreturn ] void mary() { 177 @[aligned(64)] struct S { int i; }; 178 int @[unused] i; 179 switch ( 3 ) { 180 case 2: 181 4; 182 // __attribute__(( fallthrough )) 183 // [[fallthrough]] 184 case 1: 185 3; 186 } 187 } 188 164 189 // Local Variables: // 165 190 // tab-width: 4 // -
tests/warnings/.expect/self-assignment.txt
ra16f2b6 r0497b6ba 7 7 reference to signed int 8 8 ... with resolved type: 9 reference to signed int 9 reference to signed int. 10 10 warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of: 11 11 Variable Expression: s: instance of struct S with body … … 15 15 reference to instance of struct S with body 16 16 ... with resolved type: 17 reference to instance of struct S with body 17 reference to instance of struct S with body. 18 18 warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of: 19 19 Member Expression, with field: … … 28 28 reference to signed int 29 29 ... with resolved type: 30 reference to signed int 30 reference to signed int. 31 31 warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of: 32 32 Member Expression, with field: … … 46 46 reference to signed int 47 47 ... with resolved type: 48 reference to signed int 48 reference to signed int.
Note: See TracChangeset
for help on using the changeset viewer.