Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr51821.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-options "-std=c99 -O2" } */ /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */ extern void abort (void); unsigned int __attribute__((noinline)) test (int shift_size) { unsigned long long res = ~0; return res << shift_size; } int main () { int dst = 32; if (test (dst) != 0) abort (); return 0; }