repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c90-left-shift-2.c
blob
f79ab8b71de8e96f251dce734aeb3a55be36db5d
1
/* { dg-do compile } */
2
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
3
4
#define INTM2 (sizeof (int) * __CHAR_BIT__ - 2)
5
6
enum
{
A
=
10
<<
INTM2
};
7
int
k
=
10
<<
INTM2
;
8
9
void
10
fn
(
int
i
)
11
{
12
switch
(
i
)
13
case
10
<<
INTM2
:
break
;
14
}