summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ultrasp2.c
blob: 1b8e5827a293552c0911ee2a365c306c5079dfff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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 "" } */
/* { dg-options "-O0 -m64" { target sparc64-*-* } } */
/* { dg-options "-O0 -m64" { target sparcv9-*-* } } */
/* { dg-options "" { target sparc-*-solaris2.[0-6] } } */
/* { dg-options "" { target sparc-*-solaris2.[0-6].* } } */

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