summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/extern1.C
blob: cc95fa6946813a28eb7f1f06fe07856ce9762549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/21495
// { dg-do compile }

class A
{
  extern void *copy (void) // { dg-error "storage class specified" }
  {
    return 0;
  }
  extern A &operator= (const A &) // { dg-error "storage class specified" }
  {
    return *this;
  }
};