aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/auto-fn25.C
blob: 24680f16d05c24ef1f7c745218a0111efc36408d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/60574
// { dg-do compile { target c++1y } }
// { dg-require-effective-target lto }
// { dg-options "-flto" }

struct A
{
  virtual auto foo() {}		// { dg-error "virtual.*deduced" }
};

struct B : A
{
  auto foo();
};

B b;