summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/func-def1.C
blob: 00c973d8813aae9f9e55b234d2e97aa429eb1536 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/7917
// Origin: VACLAV HAISMAN <V.Haisman@sh.cvut.cz>
// { dg-do compile }

struct A
{
    int i;
    void foo() = 0 {} // { dg-error "" }

    A() : i(0) {}
};