gcc/testsuite/g++.dg/cpp1z/decomp57.C
raw| 1 | // PR c++/108474 |
| 2 | // { dg-do link { target c++17 } } |
| 3 | |
| 4 | struct T { int i, j; }; |
| 5 | T h; |
| 6 | auto [i, j] = h; |
| 7 | int &r = i; |
| 8 | int s = i; |
| 9 | int *t = &i; |
| 10 | |
| 11 | void |
| 12 | foo (int **p, int *q) |
| 13 | { |
| 14 | static int &u = i; |
| 15 | static int v = i; |
| 16 | static int *w = &i; |
| 17 | int &x = i; |
| 18 | int y = i; |
| 19 | int *z = &i; |
| 20 | *p = &i; |
| 21 | *q = i; |
| 22 | } |
| 23 | |
| 24 | int |
| 25 | main () |
| 26 | { |
| 27 | } |