aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/test-local-static-longlong.c
blob: 19afa53c016ecbaa92e43e6f42d5203b45aac54f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}