X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fwtr-suffix-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fwtr-suffix-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=30e4959738d77519f47e93900f974a5b5053f4a9;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/wtr-suffix-1.c b/gcc/testsuite/gcc.dg/wtr-suffix-1.c deleted file mode 100644 index 30e49597..00000000 --- a/gcc/testsuite/gcc.dg/wtr-suffix-1.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Test for -Wtraditional warnings on integer constant suffixes. - Note, gcc should omit these warnings in system header files. - Origin: Kaveh R. Ghazi 8/24/2000. */ -/* { dg-do compile } */ -/* { dg-options "-Wtraditional" } */ - -void -testfunc (void) -{ - int i; - double f; - - i = 1L; - i = 1l; - i = 1U; /* { dg-warning "traditional C rejects the 'u' suffix" "numeric constant suffix" } */ - i = 1u; /* { dg-warning "traditional C rejects the 'u' suffix" "numeric constant suffix" } */ - f = 1.0; - f = 1.0F; /* { dg-warning "traditional C rejects the 'f' suffix" "numeric constant suffix" } */ - f = 1.0f; /* { dg-warning "traditional C rejects the 'f' suffix" "numeric constant suffix" } */ - f = 1.0L; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */ - f = 1.0l; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */ - -# 24 "sys-header.h" 3 -/* We are in system headers now, no -Wtraditional warnings should issue. */ - - i = 1L; - i = 1l; - i = 1U; - i = 1u; - f = 1.0; - f = 1.0F; - f = 1.0f; - f = 1.0L; - f = 1.0l; -}