diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-14 16:49:03 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-14 16:49:03 +0000 |
commit | 91981c104b5b61afa6c78a63702a170d88dbbd65 (patch) | |
tree | 8f8938fc6cb0980271949fdb38131c196ebb8cfe /gcc/testsuite | |
parent | 46dc307ec3087b272ea095a3887616accb8d23cf (diff) | |
download | gcc-91981c104b5b61afa6c78a63702a170d88dbbd65.tar.gz |
* gcc.c-torture/execute/20000314-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000314-2.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a3ba577a6d7..a2963a09558 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ Tue Mar 14 08:58:37 2000 Jeffrey A Law (law@cygnus.com) + * gcc.c-torture/execute/20000314-2.c: New test. * gcc.c-torture/execute/20000314-1.c: New test. * gcc.c-torture/compile/20000314-2.c: New test. * gcc.c-torture/compile/20000314-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000314-2.c b/gcc/testsuite/gcc.c-torture/execute/20000314-2.c new file mode 100644 index 00000000000..c190d8f79b5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000314-2.c @@ -0,0 +1,23 @@ +typedef unsigned long long uint64; +const uint64 bigconst = 1ULL << 34; + +int a = 1; + +static +uint64 getmask(void) +{ + if (a) + return bigconst; + else + return 0; +} + +main() +{ + uint64 f = getmask(); + if (sizeof (long long) == 8 + && f != bigconst) abort (); + exit (0); +} + + |