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
libstdc++: Fix find_last_set(simd_mask) to ignore padding bits
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
deprecate14283.d
blob
e91db649ceeb90ea3027b1388a282241bd8f19e2
1
// REQUIRED_ARGS: -dw
2
// PERMUTE_ARGS:
3
class
C
4
{
5
void
bug
()
6
{
7
autoref
(
this
);
// 'auto ref' becomes non-ref parameter
8
autoref
(
super
);
// 'auto ref' becomes non-ref parameter
9
}
10
}
11
12
void
autoref
(
T
)(
auto ref
T t
) {
static assert
(
__traits
(
isRef
,
t
) ==
false
); }