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

unsigned int bar(void) { return 32768; }

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