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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum3.C
blob
940bc047a148e6f48e9b419a936764b96b98be48
1
// PR c++/38064
2
// { dg-do run { target c++11 } }
3
4
enum class E { elem };
5
6
template <class T>
7
void f (T t);
8
9
bool f (bool b) { return b; }
10
11
int main()
12
{
13
E e = E::elem;
14
if (!f (e == E::elem))
15
return 1;
16
if (!f (e <= E::elem))
17
return 1;
18
if (!f (e >= E::elem))
19
return 1;
20
if (f (e < E::elem))
21
return 1;
22
if (f (e > E::elem))
23
return 1;
24
if (f (e != E::elem))
25
return 1;
26
}