summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr29797-2.c
blob: 9313bf4c635b3d4ac8a5e8ef4d22e2a3ddfa650e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern void abort(void);

unsigned long bar(void) { return 32768; }

int main()
{
  unsigned long nStyle = bar ();
  if (nStyle & 32768)
    nStyle |= 65536;
  if (nStyle != (32768 | 65536))
    abort ();
  return 0;
}