* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-neg1.C
blobae3dcc69cf0690a07a7ddc0284330d302efb79bb
1 // { dg-do compile { target c++14 } }
3 struct A { A(); };
5 constexpr int f(int i) {
6   static int j = i;             // { dg-error "static" }
7   thread_local int l = i;       // { dg-error "thread_local" }
8   goto foo;                     // { dg-error "goto" }
9  foo:
10   asm("foo");                   // { dg-error "asm" }
11   int k;                        // { dg-error "uninitialized" }
12   A a;                          // { dg-error "non-literal" }
13   return i;
16 // FIXME remove
17 // { dg-prune-output "return" }