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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum36.C
blob
4859670309f8245f623fe7c4e34b17b39fb4a050
1
// PR c++/82307
2
// { dg-do run { target c++11 } }
3
4
#include <cassert>
5
6
enum : short { VAL };
7
8
bool foo (int) { return true; }
9
bool foo (unsigned long long) { return false; }
10
11
int main()
12
{
13
assert (foo (VAL));
14
}