projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
d: Enable private member access for __traits
[gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test15371.d
1
// EXTRA_FILES: imports/test15371.d
2
import imports.test15371;
3
4
void main()
5
{
6
A a;
7
static assert(__traits(hasMember, A, "a"));
8
static assert(__traits(getOverloads, A, "fun").length == 3);
9
static assert(__traits(compiles, __traits(getMember, a, "a") ));
10
}