summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/namedret1.C
blob: 29955fb525ce6d59f6d53a88d6deb99718388be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// { dg-options "-Wno-deprecated" }

int f(int x) return y(x) { } // { dg-error "" } 

extern "C" void abort ();

int main()
{
  if (f(1) != 1 || f(2) != 2 || f(3) != 3)
    abort ();
  return 0;
}