diff options
author | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
---|---|---|
committer | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
commit | 554fd8c5195424bdbcabf5de30fdc183aba391bd (patch) | |
tree | 976dc5ab7fddf506dadce60ae936f43f58787092 /gcc/testsuite/gcc.dg/fixed-point/pr33466.c | |
download | cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2 cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz |
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig;
imported gcc-4.6.4 source tree from verified upstream tarball.
downloading a git-generated archive based on the 'upstream' tag
should provide you with a source tree that is binary identical
to the one extracted from the above tarball.
if you have obtained the source via the command 'git clone',
however, do note that line-endings of files in your working
directory might differ from line-endings of the respective
files in the upstream repository.
Diffstat (limited to 'gcc/testsuite/gcc.dg/fixed-point/pr33466.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/fixed-point/pr33466.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/fixed-point/pr33466.c b/gcc/testsuite/gcc.dg/fixed-point/pr33466.c new file mode 100644 index 000000000..196db310b --- /dev/null +++ b/gcc/testsuite/gcc.dg/fixed-point/pr33466.c @@ -0,0 +1,34 @@ +/* { dg-do compile } */ +/* { dg-options "-std=gnu99" } */ + +/* The suffix for a fixed-point constant must use a specific order + for the pieces, and a long long length specifier must use the + same case (ll or LL). + + These are invalid for all targets, not just those that support + fixed-point types. */ + +long double lLr = 0.5lLr; /* { dg-error "invalid suffix" } */ +long double lLR = 0.5lLR; /* { dg-error "invalid suffix" } */ +long double Llr = 0.5Llr; /* { dg-error "invalid suffix" } */ +long double LlR = 0.5LlR; /* { dg-error "invalid suffix" } */ +long double ulLr = 0.5ulLr; /* { dg-error "invalid suffix" } */ +long double ulLR = 0.5ulLR; /* { dg-error "invalid suffix" } */ +long double uLlr = 0.5uLlr; /* { dg-error "invalid suffix" } */ +long double uLlR = 0.5uLlR; /* { dg-error "invalid suffix" } */ +long double UlLr = 0.5UlLr; /* { dg-error "invalid suffix" } */ +long double UlLR = 0.5UlLR; /* { dg-error "invalid suffix" } */ +long double ULlr = 0.5ULlr; /* { dg-error "invalid suffix" } */ +long double ULlR = 0.5ULlR; /* { dg-error "invalid suffix" } */ +long double lLk = 0.5lLk; /* { dg-error "invalid suffix" } */ +long double lLK = 0.5lLK; /* { dg-error "invalid suffix" } */ +long double Llk = 0.5Llk; /* { dg-error "invalid suffix" } */ +long double LlK = 0.5LlK; /* { dg-error "invalid suffix" } */ +long double ulLk = 0.5ulLk; /* { dg-error "invalid suffix" } */ +long double ulLK = 0.5ulLK; /* { dg-error "invalid suffix" } */ +long double uLlk = 0.5uLlk; /* { dg-error "invalid suffix" } */ +long double uLlK = 0.5uLlK; /* { dg-error "invalid suffix" } */ +long double UlLk = 0.5UlLk; /* { dg-error "invalid suffix" } */ +long double UlLK = 0.5UlLK; /* { dg-error "invalid suffix" } */ +long double ULlk = 0.5ULlk; /* { dg-error "invalid suffix" } */ +long double ULlK = 0.5ULlK; /* { dg-error "invalid suffix" } */ |