aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-virtual2.C
blob: 157854c5aa075c39c937efb02a2e9b82b0429565 (plain)
1
2
3
4
5
6
7
8
// PR c++/51474
// { dg-do compile { target c++11 } }

struct A
{
  virtual int foo() = 0;
  int i = foo();  // { dg-warning "pure virtual" }
};