Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/if-shift.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Test shift operators. */ #if 1 << 4 != 16 #error /* { dg-bogus "error" "<< +ve shift" } */ #endif #if 19 >> 2 != 4 #error /* { dg-bogus "error" ">> +ve shift" } */ #endif #if 17 << -2 != 17 >> 2 #error /* { dg-bogus "error" "<< -ve shift" } */ #endif #if 25 >> -2 != 25 << 2 #error /* { dg-bogus "error" ">> -ve shift" } */ #endif