1 /* Test for -Wtraditional warnings on integer constant suffixes.
2 Note, gcc should omit these warnings in system header files.
3 Origin: Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/24/2000. */
4 /* { dg-do compile } */
5 /* { dg-options "-Wtraditional" } */
15 i
= 1U; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
16 i
= 1u; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
18 f
= 1.0F
; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
19 f
= 1.0f
; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
20 f
= 1.0L; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
21 f
= 1.0l; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */
24 /* We are in system headers now, no -Wtraditional warnings should issue. */