OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/31598
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
switch2.C
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
}