Debian Codegraph @

gcc/testsuite/g++.dg/other/pr81422.C

raw
1 /* { dg-do compile { target c++11 } } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-options "-O0" } */
4
5 struct DArray
6 {
7 __SIZE_TYPE__ length;
8 int* ptr;
9 };
10
11 void foo35(DArray)
12 {
13 static __thread int x[5];
14 foo35({5, (int*)&x});
15 }