summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted16.C
blob: 741b43de27d547f07b5fb0e406adc39ded4c1ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test that non-inline default causes the function to be defined even if
// it isn't used.

// { dg-options -std=c++0x }
// { dg-final { scan-assembler "_ZN1AC1Ev" } }

struct A
{
  A();
};

A::A() = default;

OpenPOWER on IntegriCloud