diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/test-local-static-longlong.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/test-local-static-longlong.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/test-local-static-longlong.c b/gcc/testsuite/gcc.apple/test-local-static-longlong.c new file mode 100644 index 00000000000..19afa53c016 --- /dev/null +++ b/gcc/testsuite/gcc.apple/test-local-static-longlong.c @@ -0,0 +1,19 @@ +/* { dg-do run } */ +/* { dg-options "-Wno-long-long" } */ + +#include <stdlib.h> + +long long foo() +{ + static long long rat = (1LL<<62); + return rat; +} + +int main() +{ + + if (foo() != (1LL<<62)) + abort(); + exit(0); +} + |