summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/ultrasp2.c
blob: 24202ba5ad4fe8264b14171c4c2f186512aee587 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Copyright (C) 1999 Free Software Foundation
   by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
   Simplified from libg++/src/Fix16.cc */

/* { dg-do compile } */
/* { dg-options "-O0" } */

short foo() {
  short i = (short)(1<<15);
  return i;
}