repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum35.C
blob
126fc7f1b027772275d3d06424af72b7534c54d8
1
// PR c++/82307
2
// { dg-do run { target c++11 } }
3
// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
4
5
#include <cassert>
6
7
enum : unsigned long long { VAL };
8
9
bool foo (unsigned long long) { return true; }
10
bool foo (int) { return false; }
11
12
int main()
13
{
14
assert (foo(VAL));
15
}