summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr29797-1.c
blob: 40758c1d583cd31faaf439f1d998b3abb155f86f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-require-effective-target int32plus } */
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;
}