summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/wrong-inline1.C
blob: 22b9a9768aad90ce81debec0571e0f6e10a1b59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/5921
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

struct A
{
  struct B { B(); };
};

static A::B b;

inline template <int i> void f (); // { dg-error "" }