OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-shift.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
 
5
/* Test shift operators.  */
6
 
7
#if 1 << 4 != 16
8
#error          /* { dg-bogus "error" "<< +ve shift" } */
9
#endif
10
 
11
#if 19 >> 2 != 4
12
#error          /* { dg-bogus "error" ">> +ve shift" } */
13
#endif
14
 
15
#if 17 << -2 != 17 >> 2
16
#error          /* { dg-bogus "error" "<< -ve shift" } */
17
#endif
18
 
19
#if 25 >> -2 != 25 << 2
20
#error          /* { dg-bogus "error" ">> -ve shift" } */
21
#endif
22
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.