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 tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
decomp33.C
blob
6429108dd7c46de4253c0c96c4ebee59ae55b3d5
1
// PR c++/83217
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
template <typename T>
6
struct S
7
{
8
T a;
9
};
10
11
void
12
foo (S<int> *b)
13
{
14
auto & [c] = *b; // { dg-warning "structured bindings only available with" "" { target c++14_down } }
15
}
16
17
void
18
bar (S<char> *d)
19
{
20
auto [e] = *d; // { dg-warning "structured bindings only available with" "" { target c++14_down } }
21
}