* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / pr66808.C
blobe977987bdd70039e3e014008f802be6633ea2570
1 // PR c++/66808
2 // { dg-do compile { target c++11 } }
3 // { dg-require-effective-target tls }
5 template <typename>
6 class A {
7   int *b = foo ();
8   int *foo () { static __thread int a; return &a; }
9 };
10 A<int> b;