summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.warn/flow1.C
blob: 61f6a554970821a32f4a5ba7e35d9b1b7f383115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-Wreturn-type" }
// Test that we don't get a warning about flowing off the end.

struct A {
  ~A ();
};

int f()
{
  A a1[2];
  A a2[2];
  return 1234567;
}