summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C
blob: 8295962411a39133f4506ea4b737a8c3881eec1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }
// GROUPS passed old-abort
      extern int f(int); // { dg-error "ambiguates" }

      int& f(int x)  // { dg-error "new declaration" }
      {
          int local; // { dg-warning "reference to local" }

          local = x+2;
      
          return local;
      }