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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
other
/
switch2.C
blob
6994e2a39bb5f6fa1b1155314d50116eb6720af6
1
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 13 Oct 2005 <nathan@codesourcery.com>
3
4
// PR 22551:ICE
5
// Origin: Johnny Casey <emailwastefilter-bugzillagccorg@yahoo.com>
6
7
const int B = ~(~0u >> 1);
8
9
#define b(x) (B + x)
10
11
12
int Foo (int error)
13
{
14
switch (error)
15
{
16
case b (1): return 0;
17
case b (2): return 0;
18
case b (3): return 0;
19
case b (4): return 0;
20
case b (5): return 0;
21
}
22
return 0;
23
}