20141125-1.c: New testcase.

2014-11-25  Andrew Pinski <apinski@cavium.com>

        * gcc.c-torture/execute/20141125-1.c: New testcase.

From-SVN: r218073
This commit is contained in:
Andrew Pinski 2014-11-26 08:42:18 +00:00 committed by Andrew Pinski
parent 64b4bb607b
commit 8592c20705
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-11-25 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/execute/20141125-1.c: New testcase.
2014-11-25 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/empty_label.f: Change test to continue testing

View File

@ -0,0 +1,17 @@
int f(long long a) __attribute__((noinline,noclone));
int f(long long a)
{
if (a & 0x3ffffffffffffffull)
return 1;
return 1024;
}
int main(void)
{
if(f(0x48375d8000000000ull) != 1)
__builtin_abort ();
if (f(0xfc00000000000000ull) != 1024)
__builtin_abort ();
return 0;
}