aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C
blob: 47a74249ef61095b2f0f0af75a94d2441a13f021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't link: 
// GROUPS passed old-abort
      extern f(int);// ERROR -  ambiguates.*

      int& f(int x)
      {// ERROR -  new declaration.*
          int local;// ERROR -  warning

          local = x+2;
      
          return local;
      }